From 907a63438c5a04fd7fa5baec99f03efb31239b06 Mon Sep 17 00:00:00 2001 From: Jannik Peters Date: Thu, 21 Nov 2024 16:41:12 +0100 Subject: [PATCH] Fix error without keys --- src/commands/signzone.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/commands/signzone.rs b/src/commands/signzone.rs index edf345e..bd0e837 100644 --- a/src/commands/signzone.rs +++ b/src/commands/signzone.rs @@ -389,6 +389,10 @@ impl SignZone { SigningMode::HashAndSign }; + if self.key_paths.is_empty() && !self.hash_only { + return Err("Missing key argument".into()); + }; + let out_file = if let Some(out_file) = &self.out_file { out_file.clone() } else {