From bfc5d39f371deeec92a72bcc79d83bfd2b58f1f4 Mon Sep 17 00:00:00 2001 From: Bo Lingen Date: Fri, 8 Nov 2024 11:08:47 -0600 Subject: [PATCH] fix: properly interpolate string in zod error --- src/tasks/task.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tasks/task.ts b/src/tasks/task.ts index c3e2701..0ffde5c 100644 --- a/src/tasks/task.ts +++ b/src/tasks/task.ts @@ -26,7 +26,7 @@ const zodMessageBuilder: MessageBuilder = (issues) => } const optionText = - propertyName === "_" ? "Positionals" : `--{propertyName}`; + propertyName === "_" ? "Positionals" : `--${propertyName}`; // we currently assume there is only ever one path segment return `${red(optionText)}: ${issue.message}`;