chore: Improve unreachable panic message

Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb
2025-06-08 20:31:18 +00:00
parent 9069adbe22
commit 8f70778c26

View File

@@ -114,7 +114,11 @@ impl CliOptions {
if let Some(sk) = &self.secret_key { if let Some(sk) = &self.secret_key {
return Ok(Keys::new(sk.clone()).public_key()); return Ok(Keys::new(sk.clone()).public_key());
} }
unreachable!("There is no other method until now") unreachable!(
"This method should only be called when a signer is required. If this panic occurs, \
it indicates a bug where the command failed to properly require a signer (which is \
the default behavior)"
)
} }
/// Returns the signer /// Returns the signer