mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-28 22:33:39 -05:00
make errors more clear
This commit is contained in:
parent
1e81ab7bef
commit
5e1f7d86fd
2 changed files with 9 additions and 4 deletions
|
@ -203,11 +203,13 @@ module.exports = (grunt) ->
|
||||||
err = "Can not connect to mongodb"
|
err = "Can not connect to mongodb"
|
||||||
grunt.log.error "FAIL."
|
grunt.log.error "FAIL."
|
||||||
grunt.log.errorlns """
|
grunt.log.errorlns """
|
||||||
|
!!!!!!!!!!!!!! MONGO ERROR !!!!!!!!!!!!!!
|
||||||
|
|
||||||
ShareLaTeX can not talk to the mongdb instance
|
ShareLaTeX can not talk to the mongdb instance
|
||||||
|
|
||||||
Check the mongodb instance is running and accessible on env var SHARELATEX_MONGO_URL
|
Check the mongodb instance is running and accessible on env var SHARELATEX_MONGO_URL
|
||||||
|
|
||||||
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
"""
|
"""
|
||||||
throw new Error("Can not connect to Mongodb")
|
throw new Error("Can not connect to Mongodb")
|
||||||
return callback(err)
|
return callback(err)
|
||||||
|
@ -226,11 +228,13 @@ module.exports = (grunt) ->
|
||||||
err = "Can not connect to redis"
|
err = "Can not connect to redis"
|
||||||
grunt.log.error "FAIL."
|
grunt.log.error "FAIL."
|
||||||
grunt.log.errorlns """
|
grunt.log.errorlns """
|
||||||
|
!!!!!!!!!!!!!! REDIS ERROR !!!!!!!!!!!!!!
|
||||||
|
|
||||||
ShareLaTeX can not talk to the redis instance
|
ShareLaTeX can not talk to the redis instance
|
||||||
|
|
||||||
Check the redis instance is running and accessible on env var SHARELATEX_REDIS_URL
|
Check the redis instance is running and accessible on env var SHARELATEX_REDIS_URL
|
||||||
|
|
||||||
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
"""
|
"""
|
||||||
throw new Error("Can not connect to redis")
|
throw new Error("Can not connect to redis")
|
||||||
return callback(err)
|
return callback(err)
|
||||||
|
|
|
@ -48,4 +48,5 @@ module.exports =
|
||||||
name: "notifications",
|
name: "notifications",
|
||||||
repo: "https://github.com/sharelatex/notifications-sharelatex.git",
|
repo: "https://github.com/sharelatex/notifications-sharelatex.git",
|
||||||
version: "master"
|
version: "master"
|
||||||
}]
|
}
|
||||||
|
]
|
||||||
|
|
Loading…
Reference in a new issue