mirror of
https://github.com/lise-henry/crowbook
synced 2024-05-28 22:26:25 +02:00
debug output should display stderr not stdout
otherwise most errors from external commands will not be shown
This commit is contained in:
parent
4d8afae890
commit
8d1c931e9d
|
@ -157,7 +157,7 @@ This is forbidden because we are supposed \
|
|||
Command output:\n\
|
||||
{output}'",
|
||||
command = command_name,
|
||||
output = String::from_utf8_lossy(&output.stdout)
|
||||
output = String::from_utf8_lossy(&output.stderr)
|
||||
)
|
||||
);
|
||||
Error::zipper(lformat!(
|
||||
|
@ -176,7 +176,7 @@ This is forbidden because we are supposed \
|
|||
lformat!(
|
||||
"{command} didn't return succesfully: {output}",
|
||||
command = command_name,
|
||||
output = String::from_utf8_lossy(&output.stdout)
|
||||
output = String::from_utf8_lossy(&output.stderr)
|
||||
)
|
||||
);
|
||||
Err(Error::zipper(lformat!(
|
||||
|
|
Loading…
Reference in New Issue