Browse Source

Merge branch 'master' of https://github.com/molstar/molstar

Alexander Rose 5 years ago
parent
commit
d500b8ea19
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/mol-state/state.ts

+ 5 - 2
src/mol-state/state.ts

@@ -138,10 +138,13 @@ class State {
                 this.cells.forEach(c => hasError = hasError || c.state === 'error');
                 if (hasError) {
                     restored = true;
-                    this.updateTree(snapshot).runInContext(ctx);
+                    await this.updateTree(snapshot).runInContext(ctx);
                 }
             } catch (e) {
-                if (!restored) this.updateTree(snapshot).runInContext(ctx);
+                if (!restored) {
+                    await this.updateTree(snapshot).runInContext(ctx);
+                    this.events.log.error(e);
+                }
             }
         });
     }