From 195eaa367fc0284479a71d0cc21ae6fbd77bcc4a Mon Sep 17 00:00:00 2001 From: Ben Irvin Date: Thu, 23 Jan 2025 15:29:39 +0100 Subject: [PATCH] fix: use path in error message --- packages/core/admin/server/src/validation/common-validators.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/admin/server/src/validation/common-validators.ts b/packages/core/admin/server/src/validation/common-validators.ts index a59cfc6f9c..505d48ab41 100644 --- a/packages/core/admin/server/src/validation/common-validators.ts +++ b/packages/core/admin/server/src/validation/common-validators.ts @@ -23,7 +23,7 @@ export const username = yup.string().min(1); export const password = yup .string() .min(8) - .test('required-byte-size', 'Password must be less than 73 bytes', (value) => { + .test('required-byte-size', '${path} must be less than 73 bytes', (value) => { if (!value) return true; const byteSize = new TextEncoder().encode(value).length; return byteSize <= 72;