From 3ddc33b07c8b5e6e68b4d0ba92f60a8d4663341a Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 12 Jan 2018 16:01:58 -0500 Subject: [PATCH] Don't swallow errors once they've been popped up --- app/assets/javascripts/discourse/lib/ajax-error.js.es6 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/javascripts/discourse/lib/ajax-error.js.es6 b/app/assets/javascripts/discourse/lib/ajax-error.js.es6 index 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; }