print error messages from mongoose to stderr