diff --git a/index.js b/index.js index 4fa6231..fdfed8f 100644 --- a/index.js +++ b/index.js @@ -157,7 +157,9 @@ PDFImage.prototype = { }).catch(function(error){ reject(error); }); - }); + }).catch((error) => { + reject(error); + }); }); }, convertPage: function (pageNumber) {