Jakub Kicinski <[email protected]> writes:

> Reuse repr(cmd) instead of manually formatting a similar string.
>
> Before:
>   # Exception| lib.py.utils.CmdExitFailure: Command failed: false
>   # Exception| STDOUT: b''
>   # Exception| STDERR: b''
>
> After:
>   # Exception| lib.py.utils.CmdExitFailure: Command failed
>   # Exception| CMD: false
>   # Exception|   EXIT: 1

(This seemingly omits STDOUT and STDERR, but cmd.__repr__ includes these
if they are truthy.)

> Signed-off-by: Jakub Kicinski <[email protected]>

Reviewed-by: Petr Machata <[email protected]>

Reply via email to