nitpick: return 1 if errors occurred
authorJean Privat <jean@pryen.org>
Wed, 22 Jul 2015 14:18:40 +0000 (10:18 -0400)
committerJean Privat <jean@pryen.org>
Wed, 22 Jul 2015 14:18:40 +0000 (10:18 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/nitpick.nit

index 4d00945..d876c38 100644 (file)
@@ -55,3 +55,4 @@ toolcontext.mmodules_to_check.add_all mmodules
 
 modelbuilder.run_phases
 toolcontext.run_global_phases(mmodules)
+if toolcontext.error_count > 0 then exit(1)