From 09ca7d887c419d0df5dace89f4193bd57fae89a9 Mon Sep 17 00:00:00 2001 From: Andrea Maria Piana Date: Mon, 15 Oct 2018 19:12:54 +0200 Subject: [PATCH] Log db error Signed-off-by: Andrea Maria Piana --- src/status_im/data_store/realm/core.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/status_im/data_store/realm/core.cljs b/src/status_im/data_store/realm/core.cljs index f3e05cf4c4..0baf657eb0 100644 --- a/src/status_im/data_store/realm/core.cljs +++ b/src/status_im/data_store/realm/core.cljs @@ -202,8 +202,9 @@ (encrypted-realm-version file-name new-key) (log/info "try to encrypt with password success") (on-success)) - (catch :default _ + (catch :default e (do + (log/warn "failed checking db encryption with" e) (log/info "try to encrypt with old key") (encrypted-realm-version file-name old-key) (log/info "try to encrypt with old key success")