chore: fix typo in promise rejection (#36763)
This commit is contained in:
parent
a9c03950c0
commit
ce56d614a3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue