diff --git a/ayanova/src/api/gzvalidate.js b/ayanova/src/api/gzvalidate.js index 29928828..22f741c2 100644 --- a/ayanova/src/api/gzvalidate.js +++ b/ayanova/src/api/gzvalidate.js @@ -265,6 +265,11 @@ export default { throw "DEV ERROR gzvalidate::ServerErrors -> serverError seems to be missing from form's vue data object"; } + //make sure errorBoxMessage is defined on data + if (!v.$_.has(v, "errorBoxMessage")) { + throw "DEV ERROR gzvalidate::ServerErrors -> errorBoxMessage seems to be missing from form's vue data object"; + } + //ensure the error returned is in an expected format to catch coding errors at the server end if (!v.$_.isEmpty(v.serverError)) { //Make sure there is an error code if there is an error collection diff --git a/ayanova/src/api/locale.js b/ayanova/src/api/locale.js index 44a0ed8d..98331a42 100644 --- a/ayanova/src/api/locale.js +++ b/ayanova/src/api/locale.js @@ -89,7 +89,8 @@ export default { "ErrorAPI2207", "ErrorAPI2208", "ErrorAPI2209", - "ErrorServerUnresponsive" + "ErrorServerUnresponsive", + "ErrorUserNotAuthenticated" ], decimalValidate(required) { return { required: required, decimal: [2, this.formats.decimalSeparator] };