failed to execute: show errors better
This commit is contained in:
parent
6a185a7805
commit
2b1601ee85
2 changed files with 8 additions and 3 deletions
|
|
@ -80,6 +80,9 @@ lru = { version = "0.12.3", optional = true }
|
|||
mime_guess = { version = "2.0.5", default-features = false }
|
||||
tokio-socks = "0.5.2"
|
||||
|
||||
[build-dependencies]
|
||||
anyhow = "1"
|
||||
|
||||
[dev-dependencies]
|
||||
futures = { version = "0.3" }
|
||||
tracing-subscriber = "0.3"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
use anyhow::Context;
|
||||
use std::path::Path;
|
||||
use std::process::Command;
|
||||
|
||||
|
|
@ -19,14 +20,15 @@ fn main() {
|
|||
.args(args)
|
||||
.current_dir(webui_dir)
|
||||
.output()
|
||||
.unwrap_or_else(|_| {
|
||||
panic!(
|
||||
.with_context(|| {
|
||||
format!(
|
||||
"Failed to execute {} {} in {:?}",
|
||||
cmd,
|
||||
args.join(" "),
|
||||
webui_dir
|
||||
)
|
||||
});
|
||||
})
|
||||
.unwrap();
|
||||
|
||||
if !output.status.success() {
|
||||
panic!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue