mirror of
https://github.com/Noratrieb/website.git
synced 2026-01-14 17:05:02 +01:00
error handling
This commit is contained in:
parent
685c02cfdd
commit
5637e3cb59
1 changed files with 3 additions and 2 deletions
|
|
@ -13,8 +13,9 @@ pub fn run_process(cmd: &mut Command) -> Result<String> {
|
|||
|
||||
if !output.status.success() {
|
||||
bail!(
|
||||
"command returned error: {}",
|
||||
String::from_utf8(output.stderr).wrap_err("stderr is not UTF-8")?
|
||||
"command returned error: {}\n{}",
|
||||
String::from_utf8(output.stderr).wrap_err("stderr is not UTF-8")?,
|
||||
String::from_utf8(output.stdout).wrap_err("stderr is not UTF-8")?
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue