Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling callback twice on error #5

Closed
dbashford opened this issue Jul 10, 2014 · 1 comment
Closed

Calling callback twice on error #5

dbashford opened this issue Jul 10, 2014 · 1 comment

Comments

@dbashford
Copy link

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)
  }
@nisaacson
Copy link
Owner

Fixed in 620de3e and published to npm as version 1.1.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants