From a3a7bdb890aa424f9d318c24b4e73b780bdf91c0 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Thu, 22 Sep 2016 12:30:43 +0100 Subject: [PATCH] make errors more clear --- Gruntfile.coffee | 10 +++++++--- config/services.js | 3 ++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index b11c3163bb..dd347da2aa 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -203,11 +203,13 @@ module.exports = (grunt) -> err = "Can not connect to mongodb" grunt.log.error "FAIL." grunt.log.errorlns """ - + !!!!!!!!!!!!!! MONGO ERROR !!!!!!!!!!!!!! + ShareLaTeX can not talk to the mongdb instance Check the mongodb instance is running and accessible on env var SHARELATEX_MONGO_URL - + + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! """ throw new Error("Can not connect to Mongodb") return callback(err) @@ -226,11 +228,13 @@ module.exports = (grunt) -> err = "Can not connect to redis" grunt.log.error "FAIL." grunt.log.errorlns """ - + !!!!!!!!!!!!!! REDIS ERROR !!!!!!!!!!!!!! + ShareLaTeX can not talk to the redis instance Check the redis instance is running and accessible on env var SHARELATEX_REDIS_URL + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! """ throw new Error("Can not connect to redis") return callback(err) diff --git a/config/services.js b/config/services.js index 3a85bfb597..2072964383 100644 --- a/config/services.js +++ b/config/services.js @@ -48,4 +48,5 @@ module.exports = name: "notifications", repo: "https://github.com/sharelatex/notifications-sharelatex.git", version: "master" -}] +} +]