Skip to content

Commit

Permalink
Set exit status to 1 on parse failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
vic committed Dec 9, 2010
1 parent 9801019 commit d003877
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/astpretty.py
Expand Up @@ -73,6 +73,7 @@ def main():
printAst(ast, initlevel=0)
except SyntaxError, e:
traceback.print_exc()
sys.exit(1)

if __name__ == '__main__':
main()
Expand Down

0 comments on commit d003877

Please sign in to comment.