sdk: Don't fail decompilation on LJD error
All checks were successful
lint/clippy Checking for common mistakes and opportunities for code improvement
build/msvc Build for the target platform: msvc
build/linux Build for the target platform: linux
All checks were successful
lint/clippy Checking for common mistakes and opportunities for code improvement
build/msvc Build for the target platform: msvc
build/linux Build for the target platform: linux
This commit is contained in:
parent
46a61a7473
commit
4ec44720b0
1 changed files with 2 additions and 1 deletions
|
@ -93,11 +93,12 @@ where
|
||||||
let output = cmd.output().wrap_err("Failed to run ljd")?;
|
let output = cmd.output().wrap_err("Failed to run ljd")?;
|
||||||
|
|
||||||
if !output.status.success() {
|
if !output.status.success() {
|
||||||
eyre::bail!(
|
let err = eyre::eyre!(
|
||||||
"LJD exited with code {:?}:\n{}",
|
"LJD exited with code {:?}:\n{}",
|
||||||
output.status.code(),
|
output.status.code(),
|
||||||
String::from_utf8_lossy(&output.stderr)
|
String::from_utf8_lossy(&output.stderr)
|
||||||
);
|
);
|
||||||
|
tracing::error!("Failed to decompile '{}':\n{:?}", name, err);
|
||||||
}
|
}
|
||||||
|
|
||||||
let content = output.stdout;
|
let content = output.stdout;
|
||||||
|
|
Loading…
Add table
Reference in a new issue