nswbmw / koa-mongo

MongoDB middleware for koa, support connection pool.
145 stars 31 forks source link

Throw an error if Mongodb isn't started #33

Closed ThamosIO closed 5 years ago

nswbmw commented 5 years ago

You cannot throw an error from a callback function, i bump v1.5.0 fix mongodb connect timeout error

ThamosIO commented 5 years ago

Yes, I should have marked this PR as a WIP actually. But you have to fix this issue, your code hangs and doesn't even fail if mongo isn't started.