##// END OF EJS Templates
Merge pull request #7578 from Carreau/moreerrors...
Min RK -
r20187:f8315efc merge
parent child Browse files
Show More
@@ -78,18 +78,22 b' function($,'
78 78 that.save_enabled = true;
79 79 that.generation = cm.changeGeneration();
80 80 that.events.trigger("file_loaded.Editor", model);
81 },
81 }).catch(
82 82 function(error) {
83 83 that.events.trigger("file_load_failed.Editor", error);
84 if (error.xhr.responseJSON.reason === 'bad format') {
84 if (((error.xhr||{}).responseJSON||{}).reason === 'bad format') {
85 85 window.location = utils.url_path_join(
86 86 that.base_url,
87 87 'files',
88 88 that.file_path
89 89 );
90 } else {
91 console.warn('Error while loading: the error was:')
92 console.warn(error)
90 93 }
91 94 cm.setValue("Error! " + error.message +
92 "\nSaving disabled.");
95 "\nSaving disabled.\nSee Console for more details.");
96 cm.setOption('readOnly','nocursor')
93 97 that.save_enabled = false;
94 98 }
95 99 );
@@ -2245,6 +2245,8 b' define(['
2245 2245 "v" + this.nbformat + " or earlier. See the server log for details.";
2246 2246 } else {
2247 2247 msg = error.message;
2248 console.warn('Error stack trace while loading notebook was:');
2249 console.warn(error.stack);
2248 2250 }
2249 2251 dialog.modal({
2250 2252 notebook: this,
General Comments 0
You need to be logged in to leave comments. Login now