chore: fix typo in promise rejection (#36763)

This commit is contained in:
Eugene Nesvetaev
2023-01-12 15:32:56 +04:00
committed by GitHub
parent a9c03950c0
commit ce56d614a3

View File

@@ -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;
}