浏览代码

Log workspace fetch errors instead of using console.warn.

Afshin T. Darian 6 年之前
父节点
当前提交
c3a1a2c042
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/apputils-extension/src/index.ts

+ 2 - 2
packages/apputils-extension/src/index.ts

@@ -472,8 +472,8 @@ const state: JupyterFrontEndPlugin<IStateDB> = {
             resolved = true;
             transform.resolve({ type: 'overwrite', contents: saved.data });
           }
-        } catch (error) {
-          console.warn(`Fetching workspace (${workspace}) failed:`, error);
+        } catch ({ message }) {
+          console.log(`Fetching workspace "${workspace}" failed.`, message);
 
           // If the workspace does not exist, cancel the data transformation
           // and save a workspace with the current user state data.