This commit is contained in:
@@ -24,12 +24,12 @@ function dealWithError(msg, form) {
|
||||
//then put the error into it
|
||||
if (form) {
|
||||
if (form.$gzdevmode()) {
|
||||
//make sure appError is defined on data
|
||||
if (!form.$_.has(form, "appError")) {
|
||||
throw "DEV ERROR errorHandler::dealWithError -> appError seems to be missing from form's vue data object";
|
||||
//make sure formState.appError is defined on data
|
||||
if (!form.$_.has(form, "formState.appError")) {
|
||||
throw "DEV ERROR errorHandler::dealWithError -> formState.appError seems to be missing from form's vue data object";
|
||||
}
|
||||
}
|
||||
form.appError = msg;
|
||||
form.formState.appError = msg;
|
||||
form.$gzform.setErrorBoxErrors(form);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user