diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/data/things/validators.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data/things/validators.js b/src/data/things/validators.js index 866a9dad..01062e7d 100644 --- a/src/data/things/validators.js +++ b/src/data/things/validators.js @@ -766,8 +766,8 @@ export function anyOf(...validators) { for (const [validator, i, error] of prefaceErrorInfo.concat(errorInfo)) { error.message = (validator?.name - ? `(#${i + 1} "${validator.name}") ${error.message}` - : `(#${i + 1}) ${error.message}`); + ? `${i + 1}. "${validator.name}": ${error.message}` + : `${i + 1}. ${error.message}`); error.check = (Array.isArray(validator) && validator.length === 1 |