From 25b90b2b542c4693150b67dc0c690b99f4ccfc95 Mon Sep 17 00:00:00 2001 From: campersau Date: Sat, 21 Oct 2023 10:33:48 +0200 Subject: [PATCH] fix: typo in screencast error message (#11213) --- packages/puppeteer-core/src/api/Page.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/puppeteer-core/src/api/Page.ts b/packages/puppeteer-core/src/api/Page.ts index c23ab8d7..6c3e85b8 100644 --- a/packages/puppeteer-core/src/api/Page.ts +++ b/packages/puppeteer-core/src/api/Page.ts @@ -2378,7 +2378,7 @@ export abstract class Page extends EventEmitter { } = 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) {