diff --git a/jupygit/static/index.js b/jupygit/static/index.js index b964abf..658a3eb 100644 --- a/jupygit/static/index.js +++ b/jupygit/static/index.js @@ -51,6 +51,12 @@ define([ d.on('hidden.bs.modal', function() { make_request(); }) + }, + error: function (jqXHR, textStatus, errorThrown) { + Jupyter.notebook.rename(Jupyter.original_name).then(function() { + Jupyter.original_name = ""; + alert("Something went wrong while cleaning your notebook"); + }); } }); });