mirror of
https://github.com/NotAShelf/stash.git
synced 2026-04-12 22:17:41 +00:00
db: *warn* the users when encrypted entries cannot be decrypted
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I1cfe9994b640cdf571007b5c52b0a2bc6a6a6964
This commit is contained in:
parent
d78cbd6741
commit
d013901396
1 changed files with 3 additions and 5 deletions
|
|
@ -606,9 +606,7 @@ impl SqliteClipboardDb {
|
|||
match decrypt_data(&contents) {
|
||||
Ok(decrypted) => decrypted,
|
||||
Err(e) => {
|
||||
debug!(
|
||||
"Skipping entry {id} in JSON output: decryption failed: {e}"
|
||||
);
|
||||
warn!("Skipping entry {id} in JSON output: decryption failed: {e}");
|
||||
continue;
|
||||
},
|
||||
}
|
||||
|
|
@ -872,7 +870,7 @@ impl ClipboardDb for SqliteClipboardDb {
|
|||
match decrypt_data(&contents) {
|
||||
Ok(decrypted) => decrypted,
|
||||
Err(e) => {
|
||||
debug!("skipping entry {id}: decryption failed: {e}");
|
||||
warn!("skipping entry {id}: decryption failed: {e}");
|
||||
continue;
|
||||
},
|
||||
}
|
||||
|
|
@ -1119,7 +1117,7 @@ impl SqliteClipboardDb {
|
|||
match decrypt_data(&contents) {
|
||||
Ok(decrypted) => decrypted,
|
||||
Err(e) => {
|
||||
debug!("Skipping entry {id} in TUI window: decryption failed: {e}");
|
||||
warn!("Skipping entry {id} in TUI window: decryption failed: {e}");
|
||||
continue;
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue