node-prince icon indicating copy to clipboard operation
node-prince copied to clipboard

Only the first error is reported on promise rejection

Open ryan0122 opened this issue 6 years ago • 0 comments

in the sample code Prince() .inputs("test.html") .output("test.pdf") .execute() .then(function () { console.log("OK: done") }, function (error) { console.log("ERROR: ", util.inspect(error)) })

The rejection function will only log the first error that is returned by Prince. I have an html document that has at least 3 errors that I would like to log and return to the client but only have access to the first error. Please add support for an array of errors.

ryan0122 avatar Sep 17 '19 16:09 ryan0122