Skip to content

Commit

Permalink
fix: properly interpolate string in zod error
Browse files Browse the repository at this point in the history
  • Loading branch information
haltcase authored Nov 8, 2024
1 parent 1907b8b commit bfc5d39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tasks/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down

0 comments on commit bfc5d39

Please sign in to comment.