Don't swallow errors once they've been popped up
This commit is contained in:
parent
6d68275ef9
commit
3ddc33b07c
|
@ -55,4 +55,8 @@ export function throwAjaxError(undoCallback) {
|
||||||
|
|
||||||
export function popupAjaxError(error) {
|
export function popupAjaxError(error) {
|
||||||
bootbox.alert(extractError(error));
|
bootbox.alert(extractError(error));
|
||||||
|
|
||||||
|
error._discourse_displayed = true;
|
||||||
|
// We re-throw in a catch to not swallow the exception
|
||||||
|
throw error;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue