mirror of
https://github.com/ejwa/gitinspector.git
synced 2024-11-13 07:11:08 +01:00
Output is now written to stderr when an exception is caught.
This commit is contained in:
parent
ed9bf56eb1
commit
c91b8cc704
1 changed files with 2 additions and 2 deletions
|
@ -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__":
|
||||
|
|
Loading…
Reference in a new issue