mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-25 17:45:55 +02:00
lib.Local.run(): Be less dramatic about exit != 0
Don't mention "error" in log message for exit codes > 0 from spawned processes, because sometimes they don't mean an error. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
281e6e2440
commit
72bd5e3555
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ class Local(Base):
|
||||||
if code == 0:
|
if code == 0:
|
||||||
return
|
return
|
||||||
if (throw or verbose):
|
if (throw or verbose):
|
||||||
msg = f'Command returned error {code}: {pretty_cmd(args, wd)}'
|
msg = f'Command exited with status {code}: {pretty_cmd(args, wd)}'
|
||||||
if stderr:
|
if stderr:
|
||||||
msg += ': ' + stderr.strip()
|
msg += ': ' + stderr.strip()
|
||||||
if throw:
|
if throw:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue