User lists now working properly with datalist. Fixup for many areas where error constructor was being called with object instead of string
This commit is contained in:
@@ -503,7 +503,8 @@ export default {
|
||||
handleError("UPSERT", error, route);
|
||||
} else {
|
||||
//specifically this is for the login page
|
||||
throw new Error(error);
|
||||
// throw new Error(error);
|
||||
throw new Error(window.$gz.errorHandler.errorToString(res));
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -694,7 +695,8 @@ export default {
|
||||
|
||||
let res = await window.$gz.api.upsert("report/render", reportDataOptions);
|
||||
if (res.error) {
|
||||
throw new Error(res.error);
|
||||
throw new Error(window.$gz.errorHandler.errorToString(res));
|
||||
//throw new Error(res.error);
|
||||
} else {
|
||||
let reportUrl = window.$gz.api.reportDownloadUrl(res.data);
|
||||
if (redirectNotPopup) {
|
||||
|
||||
Reference in New Issue
Block a user