mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 15:13:21 +00:00
Change mongo connection error message
This commit is contained in:
parent
048a071c79
commit
a62a09e67e
@ -96,12 +96,12 @@ module.exports = function(strapi) {
|
||||
}/`,
|
||||
connectOptions
|
||||
);
|
||||
} catch ({ message }) {
|
||||
const errMsg = message.includes(`:${port}`)
|
||||
? 'Make sure your MongoDB database is running...'
|
||||
: message;
|
||||
|
||||
throw new Error(errMsg);
|
||||
} catch (error) {
|
||||
const err = new Error(
|
||||
`Error connecting to the Mongo database. ${error.message}`
|
||||
);
|
||||
delete err.stack;
|
||||
throw err;
|
||||
}
|
||||
|
||||
const initFunctionPath = path.resolve(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user