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

Crash on database connection failure #111

Open
arthurlutz opened this issue May 20, 2014 · 1 comment
Open

Crash on database connection failure #111

arthurlutz opened this issue May 20, 2014 · 1 comment

Comments

@arthurlutz
Copy link

Maybe the app should display an error message instead of crashing

/home/arthur/local/pinitto.me/src/database.js:15
    if (error) throw Error(error)
                     ^
Error: Error: connection closed
    at Error (<anonymous>)
    at /home/arthur/local/pinitto.me/src/database.js:15:22
    at /home/arthur/local/pinitto.me/node_modules/mongodb/lib/mongodb/db.js:229:16
    at null.<anonymous> (/home/arthur/local/pinitto.me/node_modules/mongodb/lib/mongodb/connection/server.js:606:7)
    at EventEmitter.emit (events.js:92:17)
    at null.<anonymous> (/home/arthur/local/pinitto.me/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:154:15)
    at EventEmitter.emit (events.js:98:17)
    at Socket.<anonymous> (/home/arthur/local/pinitto.me/node_modules/mongodb/lib/mongodb/connection/connection.js:491:12)
    at Socket.EventEmitter.emit (events.js:95:17)
    at TCP.close (net.js:466:12)
@lloydwatkin
Copy link
Member

It should recover itself from this. If not this is something I'll look to fix in the next version. Thanks!

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