Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

Commit

Permalink
Merge pull request #5 from fferegrino/issue-1-fail-gracefully
Browse files Browse the repository at this point in the history
Update index.js
  • Loading branch information
fferegrino authored Dec 5, 2018
2 parents 2f69f0a + 81f2aaa commit 49c58ac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jupygit/static/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
}
});
});
Expand Down

0 comments on commit 49c58ac

Please sign in to comment.