Permalink
Browse files

report number of errors found

  • Loading branch information...
1 parent 6844404 commit 74436c855304f8e277a075bb2221cf79ecef8cc8 @invernizzi committed with May 15, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 chrisper
View
@@ -376,4 +376,10 @@ if __name__ == '__main__':
Paper(sys.argv[2:])._run_all_tests()
print "\n=== ALL TESTS PASSED ==="
else:
- Paper(sys.argv[1:])._run_all_checks()
+ paper = Paper(sys.argv[1:])
+ paper._run_all_checks()
+ if paper.errors == 0:
+ print '=== IT LOOKS GOOD TO ME. CONGRATS! ==='
+ else:
+ print "\n=== I'VE FOUND %d ISSUES ===" % paper.errors
+ sys.exit(1)

0 comments on commit 74436c8

Please sign in to comment.