Fix defineErrorMessage which is not actually using the msg variable it creates

This commit is contained in:
Jonas Geiler 2024-10-20 13:23:37 +02:00
parent 6d20c85e91
commit 249468d154
No known key found for this signature in database

View file

@ -1095,11 +1095,12 @@ export default {
}, },
defineErrorMessage(errObject) { defineErrorMessage(errObject) {
let msg;
if (errObject.response) { if (errObject.response) {
let msg = errObject.response.data.message ? errObject.response.data.message : 'An unexpected error occured.'; msg = errObject.response.data.message ? errObject.response.data.message : 'An unexpected error occured.';
} }
else { else {
let msg = errObject.message; msg = errObject.message;
} }
return swal('Oops, something went wrong!', msg, 'error'); return swal('Oops, something went wrong!', msg, 'error');
}, },