diff --git a/notebook/static/notebook/js/notebook.js b/notebook/static/notebook/js/notebook.js index 8c125f346..fad772a19 100644 --- a/notebook/static/notebook/js/notebook.js +++ b/notebook/static/notebook/js/notebook.js @@ -2742,6 +2742,8 @@ define([ $.proxy(that.save_notebook_success, that, start), function (error) { that.events.trigger('notebook_save_failed.Notebook', error); + // This hasn't handled the error, so propagate it up + return Promise.reject(error); } ); }; @@ -2845,6 +2847,7 @@ define([ this.create_checkpoint(); this._checkpoint_after_save = false; } + return data; }; Notebook.prototype.save_notebook_as = function() { @@ -3309,7 +3312,7 @@ define([ */ Notebook.prototype.save_checkpoint = function () { this._checkpoint_after_save = true; - this.save_notebook(true); + return this.save_notebook(true); }; /**