Exit with a status of 1 if something was wrong
authorMaxim Belkin <maxim.belkin@gmail.com>
Thu, 17 May 2018 17:35:52 +0000 (12:35 -0500)
committerMaxim Belkin <maxim.belkin@gmail.com>
Thu, 17 May 2018 17:36:02 +0000 (12:36 -0500)
bin/lesson_check.py

index a9b6c9c89c592d23021688c05ce03b127c1ab25c..af897d6a654730f947babb11bc3cfd0b3193e4d9 100755 (executable)
@@ -118,6 +118,8 @@ def main():
         checker.check()
 
     args.reporter.report()
+    if args.reporter.messages:
+        raise SystemExit(1)
 
 
 def parse_args():