fix: typo in screencast error message (#11213)

This commit is contained in:
campersau 2023-10-21 10:33:48 +02:00 committed by GitHub
parent 8c0f590f9e
commit 25b90b2b54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {