put error description in same line as error for cli
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user