Skip to content

Commit

Permalink
fix: typo in screencast error message (#11213)
Browse files Browse the repository at this point in the history
  • Loading branch information
campersau committed Oct 21, 2023
1 parent 8c0f590 commit 25b90b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/puppeteer-core/src/api/Page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2378,7 +2378,7 @@ export abstract class Page extends EventEmitter<PageEvents> {
} = roundRectangle(normalizeRectangle(options.crop));
if (x < 0 || y < 0) {
throw new Error(
`\`crop.x\` and \`crop.x\` must be greater than or equal to 0.`
`\`crop.x\` and \`crop.y\` must be greater than or equal to 0.`
);
}
if (cropWidth <= 0 || cropHeight <= 0) {
Expand Down

0 comments on commit 25b90b2

Please sign in to comment.