diff --git a/src/cli.py b/src/cli.py --- a/src/cli.py +++ b/src/cli.py @@ -60,7 +60,7 @@ def _generate(args): for s in shares: print(s) except SException as e: - print(e) + print(e, file=sys.stderr) def _reconstruct(args): @@ -80,7 +80,7 @@ def _reconstruct(args): try: print(reconstruct(*shares, encoding=encoding, raw=args.raw)) except SException as e: - print(e) + print(e, file=sys.stderr) def get_encoding(args):