A platform for community discussion. Free, open, simple.
UX: Show information about badge errors when saving
David Taylor15025ac958f7
diff --git a/app/assets/javascripts/discourse/app/models/badge.js b/app/assets/javascripts/discourse/app/models/badge.jsindex 9c249f89c54..340e25e8308 100644--- a/app/assets/javascripts/discourse/app/models/badge.js+++ b/app/assets/javascripts/discourse/app/models/badge.js@@ -45,14 +45,10 @@ const Badge = RestModel.extend({type = "PUT";}- return ajax(url, { type, data })- .then((json) => {- this.updateFromJson(json);- return this;- })- .catch((error) => {- throw new Error(error);- });+ return ajax(url, { type, data }).then((json) => {+ this.updateFromJson(json);+ return this;+ });},destroy() {