Skip to content

Commit

Permalink
Output is now written to stderr when an exception is caught.
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-waldenberg committed Jul 15, 2013
1 parent ed9bf56 commit c91b8cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gitinspector/gitinspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ def main():
__run__.output()

except (filtering.InvalidRegExpError, format.InvalidFormatError, optval.InvalidOptionArgument, getopt.error) as exception:
print(sys.argv[0], "\b:", exception.msg)
print(_("Try `{0} --help' for more information.").format(sys.argv[0]))
print(sys.argv[0], "\b:", exception.msg, file=sys.stderr)
print(_("Try `{0} --help' for more information.").format(sys.argv[0]), file=sys.stderr)
sys.exit(2)

if __name__ == "__main__":
Expand Down

0 comments on commit c91b8cc

Please sign in to comment.