##// END OF EJS Templates
Report the exact error that occurred
Jessica B. Hamrick -
Show More
@@ -184,11 +184,23 b' define(['
184 });
184 });
185 });
185 });
186
186
187 this.events.on('start_failed.Session',function () {
187 this.events.on('start_failed.Session',function (session, xhr, status, error) {
188 var msg = 'We were unable to start the kernel. This might ' +
188 var msg = $('<div/>');
189 'happen if the notebook was previously run with a kernel ' +
189 msg.append($('<div/>')
190 'that you do not have installed. Please choose a different kernel, ' +
190 .text('We were unable to start the kernel. This might ' +
191 'or install the needed kernel and then refresh this page.';
191 'happen if the notebook was previously run with a kernel ' +
192 'that you do not have installed. Please choose a different kernel, ' +
193 'or install the needed kernel and then refresh this page.')
194 .css('margin-bottom', '1em'));
195
196 msg.append($('<div/>')
197 .text('The exact error was:')
198 .css('margin-bottom', '1em'));
199
200 msg.append($('<div/>')
201 .attr('class', 'alert alert-danger')
202 .attr('role', 'alert')
203 .text(JSON.parse(status.responseText).message));
192
204
193 dialog.modal({
205 dialog.modal({
194 title: "Failed to start the kernel",
206 title: "Failed to start the kernel",
General Comments 0
You need to be logged in to leave comments. Login now