Fix error without keys

This commit is contained in:
Jannik Peters
2024-11-21 16:42:28 +01:00
parent 32ca8f7ca0
commit 907a63438c
+4
View File
@@ -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 {