提交 92d3324e 编写于 作者: B Benjamin Pasero

use onUnexpectedError over console.error

上级 83b97d00
......@@ -222,7 +222,7 @@ class CacheState {
this.previous = null;
}
}, err => {
console.error(errors.toErrorMessage(err));
errors.onUnexpectedError(err);
});
}
......@@ -232,7 +232,7 @@ class CacheState {
this._isLoaded = false;
return this.doDispose(this._cacheKey);
}).then(null, err => {
console.error(errors.toErrorMessage(err));
errors.onUnexpectedError(err);
});
if (this.previous) {
this.previous.dispose();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册