|
@@ -340,6 +340,9 @@ class Context<T extends DocumentRegistry.IModel> implements DocumentRegistry.ICo
|
|
|
}).catch(err => {
|
|
|
const localPath = this._manager.contents.localPath(this._path);
|
|
|
const name = PathExt.basename(localPath);
|
|
|
+ if (err.message === 'Invalid response: 400 bad format') {
|
|
|
+ err = new Error('JupyterLab is unable to open this file type.');
|
|
|
+ }
|
|
|
this._handleError(err, `File Load Error for ${name}`);
|
|
|
throw err;
|
|
|
});
|