Browse Source

chore: fix typo in promise rejection (#36763)

Eugene Nesvetaev 2 years ago
parent
commit
ce56d614a3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/browser/api/web-contents.ts

+ 1 - 1
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;
   }