CLI: include command stderr on failures

This commit is contained in:
Johannes Kirschbauer
2025-01-03 16:32:16 +01:00
parent 08f6cdc43f
commit 88bade7c14

View File

@@ -394,7 +394,8 @@ def run(
if options.check and process.returncode != 0:
err = ClanCmdError(cmd_out)
err.msg = "Command has been cancelled"
err.msg = str(stderr_buf)
err.description = "Command has been cancelled"
raise err
return cmd_out