put error description in same line as error for cli

This commit is contained in:
Jörg Thalheim
2024-09-29 16:06:02 +02:00
parent 11409b9608
commit d4685e7208

View File

@@ -425,7 +425,8 @@ def main() -> None:
raise raise
msg = e.msg msg = e.msg
if e.description: if e.description:
print(f"========> {e.description}", file=sys.stderr) msg += f": {e.description}"
log.error(msg) # noqa: TRY400
sys.exit(1) sys.exit(1)
except KeyboardInterrupt: except KeyboardInterrupt:
log.warning("Interrupted by user") log.warning("Interrupted by user")