summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjavex <florian.ruechel@inexplicity.de>2013-11-15 01:54:44 +0100
committerjavex <florian.ruechel@inexplicity.de>2013-11-20 15:12:04 +0100
commit8513d181aee05e43d39fca2a07b95842646e3c0c (patch)
treeaac2c12c10ddc27b6bddcdf9574863caec498297
parent6d1b3763c264c94d44d1cf3ae00ec1b62d894bdd (diff)
downloadgitlab-shell-8513d181aee05e43d39fca2a07b95842646e3c0c.tar.gz
Display appropriate error message on config error
-rwxr-xr-xbin/check1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/check b/bin/check
index 4391cff..c867e38 100755
--- a/bin/check
+++ b/bin/check
@@ -21,6 +21,7 @@ config = GitlabConfig.new
dirs = [config.repos_path, config.auth_file, config.redis['bin']]
dirs.each do |dir|
+ abort("ERROR: missing option in config.yml") unless dir
print "\t#{dir}: "
if File.exists?(dir)
print 'OK'