Use exit status to determine LJD failure #140
1 changed files with 5 additions and 3 deletions
|
@ -92,11 +92,13 @@ where
|
|||
|
||||
let output = cmd.output().wrap_err("Failed to run ljd")?;
|
||||
|
||||
if !output.stderr.is_empty() {
|
||||
eyre::bail!(
|
||||
"Decompilation failed: {}",
|
||||
if !output.status.success() {
|
||||
let err = eyre::eyre!(
|
||||
"LJD exited with code {:?}:\n{}",
|
||||
output.status.code(),
|
||||
String::from_utf8_lossy(&output.stderr)
|
||||
);
|
||||
tracing::error!("Failed to decompile '{}':\n{:?}", name, err);
|
||||
}
|
||||
|
||||
let content = output.stdout;
|
||||
|
|
Loading…
Add table
Reference in a new issue