A platform for community discussion. Free, open, simple.
Don't swallow errors once they've been popped up
Robin Ward3ddc33b07c8b
diff --git a/app/assets/javascripts/discourse/lib/ajax-error.js.es6 b/app/assets/javascripts/discourse/lib/ajax-error.js.es6index bb2a915727f..cb155ec2581 100644--- a/app/assets/javascripts/discourse/lib/ajax-error.js.es6+++ b/app/assets/javascripts/discourse/lib/ajax-error.js.es6@@ -55,4 +55,8 @@ export function throwAjaxError(undoCallback) {export function popupAjaxError(error) {bootbox.alert(extractError(error));++ error._discourse_displayed = true;+ // We re-throw in a catch to not swallow the exception+ throw error;}