Skip to content

Commit

Permalink
Merge pull request #704 from Financial-Times/apaleslimghost-patch-2
Browse files Browse the repository at this point in the history
fix: clarify the plugin→task options error message
  • Loading branch information
apaleslimghost authored Oct 22, 2024
2 parents a7a1b87 + 14c5472 commit 2a5ede5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion core/cli/src/plugin/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ export const validatePluginOptions = (logger: Logger, config: ValidPluginsConfig
id,
new ZodError([
{
message: `options for ${styles.plugin(id)} have moved to the ${styles.task(movedToTask)} task`,
message: `your ${styles.filepath('.toolkitrc.yml')} has options for the ${styles.plugin(
id
)} plugin, which are now task options. move these options to ${styles.code(
`options.tasks.${styles.task(movedToTask)}`
)}`,
code: ZodIssueCode.custom,
path: []
}
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2a5ede5

Please sign in to comment.