When you connect a shell to a mongod with access control (--auth) enabled, you get an ugly error message because the shell is not yet authorized to fetch the startup warning messages from the server.
The shell should probably print nothing at all if it isn't authorized.
- is duplicated by
-
SERVER-8098 Mongo shell throws exception when connecting to a server with --auth
- Closed