This commit is contained in:
@@ -42,7 +42,8 @@ export default {
|
||||
//call api route
|
||||
let res = await window.$gz.api.upsert(url, body);
|
||||
if (res.error) {
|
||||
throw new Error(res.error);
|
||||
//Error object constructor must be a string
|
||||
throw new Error(window.$gz.errorHandler.errorToString(res, vm));
|
||||
}
|
||||
|
||||
let href = window.$gz.api.genericDownloadUrl(
|
||||
@@ -55,6 +56,7 @@ export default {
|
||||
}
|
||||
} catch (error) {
|
||||
window.$gz.errorHandler.handleFormError(error, vm);
|
||||
window.$gz.eventBus.$emit("notify-error", vm.$ay.t("JobFailed"));
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user