1
0
Fork 0
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:
stefan0xC 2022-02-23 16:27:26 +01:00
parent 4d8afae890
commit 8d1c931e9d

View File

@ -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!(