Skip to content

Use exit 2 on crash to signal this is no ordinary error #5987

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 2, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion mypy/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,4 +612,5 @@ def report_internal_error(err: Exception, file: Optional[str], line: int,
print('{}: note: use --pdb to drop into pdb'.format(prefix), file=sys.stderr)

# Exit. The caller has nothing more to say.
raise SystemExit(1)
# We use exit code 2 to signal that this is no ordinary error.
raise SystemExit(2)