From 37addfe6b7edfe5a0e4715ca1ce33a029a1c21f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20Sol=C3=A1r?= Date: Fri, 9 Oct 2026 08:23:12 +0200 Subject: [PATCH] fix: report the real Actor name length limit The max-length error said "a maximum of 30 characters" while the check compares against ACTOR_NAME.MAX_LENGTH, which is 63. Both length messages now interpolate the constants so they cannot drift again. Co-Authored-By: Claude Opus 5 --- src/lib/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/utils.ts b/src/lib/utils.ts index a5bcade11..5531dd88c 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -673,10 +673,10 @@ export const validateActorName = (actorName: string) => { throw new Error('The Actor name must be a DNS hostname-friendly string (e.g. my-newest-actor).'); } if (actorName.length < ACTOR_NAME.MIN_LENGTH) { - throw new Error('The Actor name must be at least 3 characters long.'); + throw new Error(`The Actor name must be at least ${ACTOR_NAME.MIN_LENGTH} characters long.`); } if (actorName.length > ACTOR_NAME.MAX_LENGTH) { - throw new Error('The Actor name must be a maximum of 30 characters long.'); + throw new Error(`The Actor name must be at most ${ACTOR_NAME.MAX_LENGTH} characters long.`); } };