notes: display error message when note saving fails.
This commit is contained in:
@@ -447,7 +447,7 @@ Danbooru.Note = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
error_handler: function(xhr, status, exception) {
|
error_handler: function(xhr, status, exception) {
|
||||||
Danbooru.error("There was an error saving the note");
|
Danbooru.error("Error: " + xhr.responseJSON.reasons.join("; "));
|
||||||
},
|
},
|
||||||
|
|
||||||
success_handler: function(data, status, xhr) {
|
success_handler: function(data, status, xhr) {
|
||||||
|
|||||||
Reference in New Issue
Block a user