From ce56d614a373fee7d412143825e13d9bbbfb69b0 Mon Sep 17 00:00:00 2001 From: Eugene Nesvetaev Date: Thu, 12 Jan 2023 15:32:56 +0400 Subject: [PATCH] chore: fix typo in promise rejection (#36763) --- lib/browser/api/web-contents.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/browser/api/web-contents.ts b/lib/browser/api/web-contents.ts index 7ca4b09e8b68..43f9158058d5 100644 --- a/lib/browser/api/web-contents.ts +++ b/lib/browser/api/web-contents.ts @@ -272,7 +272,7 @@ WebContents.prototype.printToPDF = async function (options) { if (options.pageRanges !== undefined) { if (typeof options.pageRanges !== 'string') { - return Promise.reject(new Error('printBackground must be a String')); + return Promise.reject(new Error('pageRanges must be a String')); } printSettings.pageRanges = options.pageRanges; }