From c36fb3dd17cf652521469d82b1f24885d09a6877 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 8 Apr 2019 20:15:38 +0000 Subject: [PATCH] --- ayanova/src/api/gzvalidate.js | 5 +++++ ayanova/src/api/locale.js | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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] };