Calling callback twice on error
Closed this issue · 1 comments
dbashford commented
https://github.com/nisaacson/pdf-text-extract/blob/master/index.js#L59-L63
This purposeful?
function exitHandler(code) {
if (code !== 0) {
cb(new Error('pdftextextract command failed: ' + stderr))
}
cb(null, output)
}