From 07da8651132e2b622977039c170463a57a209a47 Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Tue, 22 Mar 2016 14:56:00 +0000 Subject: Shows error messages when trying to create label in dropdown menu Closes #14495 --- app/assets/javascripts/api.js.coffee | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/assets/javascripts/api.js.coffee') diff --git a/app/assets/javascripts/api.js.coffee b/app/assets/javascripts/api.js.coffee index 2ddf8612db3..f3ed9a66715 100644 --- a/app/assets/javascripts/api.js.coffee +++ b/app/assets/javascripts/api.js.coffee @@ -74,6 +74,8 @@ dataType: "json" ).done (label) -> callback(label) + .error (message) -> + callback(message.responseJSON) # Return group projects list. Filtered by query groupProjects: (group_id, query, callback) -> -- cgit v1.2.1