|
@@ -210,9 +210,13 @@
|
|
|
|
|
|
(events/run!)
|
|
|
|
|
|
- (p/let [repos (get-repos)]
|
|
|
- (state/set-repos! repos)
|
|
|
- (restore-and-setup! repos db-schema))
|
|
|
+ (-> (p/let [repos (get-repos)]
|
|
|
+ (state/set-repos! repos)
|
|
|
+ (restore-and-setup! repos db-schema))
|
|
|
+ (p/catch (fn [e]
|
|
|
+ (js/console.error "Errow while restoring repos: " e)))
|
|
|
+ (p/finally (fn []
|
|
|
+ (state/set-db-restoring! false))))
|
|
|
(when (mobile-util/native-platform?)
|
|
|
(p/do! (mobile-util/hide-splash)))
|
|
|
|