Merge: Nitsmell : Adding new code smells and print console updated
[nit.git] / src / nitpick.nit
index 44cab72..d876c38 100644 (file)
@@ -49,9 +49,10 @@ var model = new Model
 # A model builder to parse files
 var modelbuilder = new ModelBuilder(model, toolcontext)
 
-# Here we load an process all modules passed on the command line
+# Here we load and process all modules passed on the command line
 var mmodules = modelbuilder.parse_full(arguments)
 toolcontext.mmodules_to_check.add_all mmodules
 
 modelbuilder.run_phases
 toolcontext.run_global_phases(mmodules)
+if toolcontext.error_count > 0 then exit(1)