diff --git a/src/db/models/cipher.rs b/src/db/models/cipher.rs index b28a25cd..ac2d9f4a 100644 --- a/src/db/models/cipher.rs +++ b/src/db/models/cipher.rs @@ -398,7 +398,7 @@ impl Cipher { 3 => "card", 4 => "identity", 5 => "sshKey", - _ => panic!("Wrong type"), + _ => err!(format!("Cipher {} has an invalid type {}", self.uuid, self.atype)), }; json_object[key] = type_data_json;