ryankee/concrete — Issue #2: Failed MongoDB connection needs a proper error message
Author: bergie
Created: 2011-10-31 18:59:06+00:00
State: open

If you try to run Concrete without MongoDB available, it fails with the following:

$ concrete -h 127.0.0.1 .
Concrete listening on port 4567 with host 127.0.0.1
{ stack: [Getter/Setter],
arguments: undefined,
type: undefined,
message: 'ECONNREFUSED, Connection refused',
errno: 111,
code: 'ECONNREFUSED',
syscall: 'connect' }

It would be better to exit the process with error message _Failed connecting to MongoDB_ or something similar.