Don't swallow errors once they've been popped up

This commit is contained in:
Robin Ward 2018-01-12 16:01:58 -05:00
parent 6d68275ef9
commit 3ddc33b07c
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}