Skip to content

Commit

Permalink
Make fail() in main.py use exit code 2
Browse files Browse the repository at this point in the history
This is in line with the recommendation from python#6003.
(It is called if there's something wrong with a filename.)
  • Loading branch information
Guido van Rossum committed Apr 29, 2019
1 parent 2baebda commit 6164200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1056,4 +1056,4 @@ def parse_section(prefix: str, template: Options,

def fail(msg: str) -> None:
sys.stderr.write('%s\n' % msg)
sys.exit(1)
sys.exit(2)

0 comments on commit 6164200

Please sign in to comment.