From e8b93612269dfe29558105cb993b48ac3778676b Mon Sep 17 00:00:00 2001 From: evazion Date: Fri, 28 Apr 2017 21:37:14 -0500 Subject: [PATCH] notes: display error message when note saving fails. --- app/assets/javascripts/notes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js index 166501282..a5763bef7 100644 --- a/app/assets/javascripts/notes.js +++ b/app/assets/javascripts/notes.js @@ -447,7 +447,7 @@ Danbooru.Note = { }, 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) {