nisaacson/pdf-text-extract

Calling callback twice on error

Closed this issue · 1 comments

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)
  }

Fixed in 620de3e and published to npm as version 1.1.3