From a94edb573f5c185990fc38818752496b31ae8403 Mon Sep 17 00:00:00 2001 From: Robin Avery Date: Wed, 28 Feb 2024 21:18:58 -0500 Subject: [PATCH] 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` --- src/cmd/dol.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/dol.rs b/src/cmd/dol.rs index e48ac40..7abed32 100644 --- a/src/cmd/dol.rs +++ b/src/cmd/dol.rs @@ -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); } }