From 1e81ab7bef62171cdff253927d66e49c2e63e613 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Wed, 21 Sep 2016 12:43:58 +0100 Subject: [PATCH] throw errors in grunt when checking --- server-ce/Gruntfile.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server-ce/Gruntfile.coffee b/server-ce/Gruntfile.coffee index 06a009e955..b11c3163bb 100644 --- a/server-ce/Gruntfile.coffee +++ b/server-ce/Gruntfile.coffee @@ -209,6 +209,7 @@ module.exports = (grunt) -> 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) checkRedisConnect: (callback = (error) ->) -> @@ -219,7 +220,7 @@ module.exports = (grunt) -> if !err? grunt.log.write "OK." else - throw new Error("hllll") + throw new Error("Can not connect to redis") return callback() errorHandler = _.once (err)-> err = "Can not connect to redis" @@ -231,5 +232,6 @@ module.exports = (grunt) -> 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) rclient.on 'error', errorHandler