Print failure message to standard error

This commit is contained in:
Kovid Goyal 2018-05-21 23:26:57 +05:30
parent 4ad4e28a9c
commit 3fd2f03f11
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ to output the current clipboard contents to stdout. Note that you must enable re
sys.stdout.write(handler.clipboard_contents)
sys.stdout.flush()
if handler.print_on_fail:
print(handler.print_on_fail)
print(handler.print_on_fail, file=sys.stderr)
input('Press Enter to quit')
raise SystemExit(loop.return_code)

View File

@ -126,7 +126,7 @@ def main(args):
handler = Resize(args)
loop.loop(handler)
if handler.print_on_fail:
print(handler.print_on_fail)
print(handler.print_on_fail, file=sys.stderr)
input('Press Enter to quit')
raise SystemExit(loop.return_code)