aboutsummaryrefslogtreecommitdiffstats
path: root/atuin-client/src/history/store.rs
diff options
context:
space:
mode:
Diffstat (limited to 'atuin-client/src/history/store.rs')
-rw-r--r--atuin-client/src/history/store.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/atuin-client/src/history/store.rs b/atuin-client/src/history/store.rs
index 73166de1..442da45d 100644
--- a/atuin-client/src/history/store.rs
+++ b/atuin-client/src/history/store.rs
@@ -164,7 +164,16 @@ impl HistoryStore {
for record in records.into_iter() {
let hist = match record.version.as_str() {
HISTORY_VERSION => {
- let decrypted = record.decrypt::<PASETO_V4>(&self.encryption_key)?;
+ let decrypted = record.decrypt::<PASETO_V4>(&self.encryption_key);
+
+ let decrypted = match decrypted {
+ Ok(d) => d,
+ Err(e) => {
+ println!("failed to decrypt history: {e}");
+ continue;
+ }
+ };
+
HistoryRecord::deserialize(&decrypted.data, HISTORY_VERSION)
}
version => bail!("unknown history version {version:?}"),