diff --git a/crates/core/src/backend/decrypt.rs b/crates/core/src/backend/decrypt.rs index ee0e0c61..785d8292 100644 --- a/crates/core/src/backend/decrypt.rs +++ b/crates/core/src/backend/decrypt.rs @@ -437,8 +437,8 @@ impl DecryptBackend { return Err( RusticError::new( ErrorKind::Verification, - "Extra verification failed: After decrypting and decompressing the data changed! The data may be corrupted.\nPlease check the backend for corruption and try again. You can also try to run `rustic check --read-data` to check for corruption. This may take a long time.", - ) + "Verification failed: After decrypting and decompressing the data changed! The data may be corrupted.\nPlease check the backend for corruption and try again. You can also try to run `rustic check --read-data` to check for corruption. This may take a long time.", + ).attach_error_code("C003") ); } } @@ -491,8 +491,8 @@ impl DecryptBackend { return Err( RusticError::new( ErrorKind::Verification, - "Extra verification failed: After decrypting and decompressing the data changed! The data may be corrupted.\nPlease check the backend for corruption and try again. You can also try to run `rustic check --read-data` to check for corruption. This may take a long time.", - ) + "Verification failed: After decrypting and decompressing the data changed! The data may be corrupted.\nPlease check the backend for corruption and try again. You can also try to run `rustic check --read-data` to check for corruption. This may take a long time.", + ).attach_error_code("C003") ); } }