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:
@@ -204,7 +204,8 @@ export default {
|
||||
//call seed route
|
||||
let jobId = await window.$gz.api.upsert("attachment/maintenance");
|
||||
if (jobId.error) {
|
||||
throw new Error(jobId.error);
|
||||
//throw new Error(jobId.error);
|
||||
throw new Error(window.$gz.errorHandler.errorToString(jobId, vm));
|
||||
}
|
||||
jobId = jobId.jobId; //it's in a sub key
|
||||
vm.jobActive = true;
|
||||
@@ -230,7 +231,10 @@ export default {
|
||||
`job-operations/status/${jobId}`
|
||||
);
|
||||
if (jobStatus.error) {
|
||||
throw new Error(jobStatus.error);
|
||||
// throw new Error(jobStatus.error);
|
||||
throw new Error(
|
||||
window.$gz.errorHandler.errorToString(jobStatus, vm)
|
||||
);
|
||||
}
|
||||
jobStatus = jobStatus.data;
|
||||
if (jobStatus == 4 || jobStatus == 0) {
|
||||
|
||||
Reference in New Issue
Block a user