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

This commit is contained in:
Lucas Schwiderski 2023-11-17 15:10:20 +01:00
parent 46a61a7473
commit 4ec44720b0
Signed by: lucas
GPG key ID: AA12679AAA6DF4D8

View file

@ -93,11 +93,12 @@ where
let output = cmd.output().wrap_err("Failed to run ljd")?;
if !output.status.success() {
eyre::bail!(
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;