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

Improve error reporting #13

Open
unwriter opened this issue Sep 2, 2019 · 0 comments
Open

Improve error reporting #13

unwriter opened this issue Sep 2, 2019 · 0 comments

Comments

@unwriter
Copy link
Collaborator

unwriter commented Sep 2, 2019

A lot of .env related errors are not handled precisely and the app ends up stopping with errors such as:

BITBUS all finished at block undefined
/usr/local/lib/node_modules/bitbus/block.js:46
      fileStream.write("]")
                 ^

TypeError: Cannot read property 'write' of undefined
    at Stream.<anonymous> (/usr/local/lib/node_modules/bitbus/block.js:46:18)
    at Stream.emit (events.js:203:15)
    at Stream.stream.destroy (/usr/local/lib/node_modules/bitbus/node_modules/through/index.js:84:12)
    at _end (/usr/local/lib/node_modules/bitbus/node_modules/through/index.js:67:14)
    at Stream.stream.end (/usr/local/lib/node_modules/bitbus/node_modules/through/index.js:74:5)
    at Stream.onend (internal/streams/legacy.js:42:10)
    at Stream.emit (events.js:203:15)
    at drain (/usr/local/lib/node_modules/bitbus/node_modules/through/index.js:34:23)
    at Stream.stream.queue.stream.push (/usr/local/lib/node_modules/bitbus/node_modules/through/index.js:45:5)
    at Stream.end (/usr/local/lib/node_modules/bitbus/node_modules/through/index.js:15:35)

The error report needs to be much better so the developer knows what exactly is going wrong.

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

1 participant