diff options
author | John Turner <jturner.usa@gmail.com> | 2025-09-12 22:33:10 -0400 |
---|---|---|
committer | John Turner <jturner.usa@gmail.com> | 2025-09-12 22:33:10 -0400 |
commit | d84ddba79268f39c5168fb9a46b7a526031adc8f (patch) | |
tree | 0dbf72186ba204224aa8630abae9f995b2c17952 | |
parent | c611d306d862e8ba9d5a9d628a4d9a29af216aee (diff) | |
download | pypaste-d84ddba79268f39c5168fb9a46b7a526031adc8f.tar.gz |
print errors to sys.stderr
-rw-r--r-- | pypaste/client/__main__.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pypaste/client/__main__.py b/pypaste/client/__main__.py index a1b5f53..441c3f2 100644 --- a/pypaste/client/__main__.py +++ b/pypaste/client/__main__.py @@ -49,7 +49,10 @@ def main() -> int: if ( syntax := args.syntax ) is not None and syntax not in service.supported_syntaxes(): - print(f"{syntax} is not supported for service {args.service}") + print( + f"{syntax} is not supported for service {args.service}", + file=sys.stderr, + ) return 1 try: @@ -61,7 +64,7 @@ def main() -> int: try: url = service.paste(text, syntax, args.raw) except Exception as e: - print(e) + print(e, file=sys.stderr) return 1 print(url) |