Emit an error code when `dol diff` does not match (#43)

* Emit an error code when `dol diff` does not match

* `exit(1)` instead of `bail`
This commit is contained in:
Robin Avery 2024-02-28 21:18:58 -05:00 committed by GitHub
parent 807dc6a440
commit a94edb573f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -1534,7 +1534,7 @@ fn diff(args: DiffArgs) -> Result<()> {
linked_sym.address,
);
}
return Ok(());
std::process::exit(1);
}
}
@ -1575,7 +1575,7 @@ fn diff(args: DiffArgs) -> Result<()> {
);
log::error!("Original: {}", hex::encode_upper(orig_data));
log::error!("Linked: {}", hex::encode_upper(linked_data));
return Ok(());
std::process::exit(1);
}
}