Skip to content

Commit

Permalink
change 'sites' to 'legacy_assets' in error msg (#6805)
Browse files Browse the repository at this point in the history
  • Loading branch information
emily-shen authored Sep 23, 2024
1 parent 4db75e1 commit 318640d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/wrangler/src/__tests__/dev.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1571,7 +1571,7 @@ describe("wrangler dev", () => {
).rejects.toThrowErrorMatchingInlineSnapshot(
`
[Error: Cannot use Experimental Assets and Legacy Assets in the same Worker.
Please remove either the \`site\` or \`experimental_assets\` field from your configuration file.]
Please remove either the \`legacy_assets\` or \`experimental_assets\` field from your configuration file.]
`
);
});
Expand All @@ -1584,7 +1584,7 @@ describe("wrangler dev", () => {
).rejects.toThrowErrorMatchingInlineSnapshot(
`
[Error: Cannot use Experimental Assets and Legacy Assets in the same Worker.
Please remove either the \`site\` or \`experimental_assets\` field from your configuration file.]
Please remove either the \`legacy_assets\` or \`experimental_assets\` field from your configuration file.]
`
);
});
Expand All @@ -1607,7 +1607,7 @@ describe("wrangler dev", () => {
).rejects.toThrowErrorMatchingInlineSnapshot(
`
[Error: Cannot use Experimental Assets and Legacy Assets in the same Worker.
Please remove either the \`site\` or \`experimental_assets\` field from your configuration file.]
Please remove either the \`legacy_assets\` or \`experimental_assets\` field from your configuration file.]
`
);
});
Expand All @@ -1626,7 +1626,7 @@ describe("wrangler dev", () => {
).rejects.toThrowErrorMatchingInlineSnapshot(
`
[Error: Cannot use Experimental Assets and Legacy Assets in the same Worker.
Please remove either the \`site\` or \`experimental_assets\` field from your configuration file.]
Please remove either the \`legacy_assets\` or \`experimental_assets\` field from your configuration file.]
`
);
});
Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/src/experimental-assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ export function validateAssetsArgsAndConfig(
) {
throw new UserError(
"Cannot use Experimental Assets and Legacy Assets in the same Worker.\n" +
"Please remove either the `site` or `experimental_assets` field from your configuration file."
"Please remove either the `legacy_assets` or `experimental_assets` field from your configuration file."
);
}

Expand Down

0 comments on commit 318640d

Please sign in to comment.