From a7a48bd796831cbc56503e60818cff472446ffd0 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Tue, 15 Jan 2019 09:01:37 -0700 Subject: [PATCH] better handling config problems --- qnadmin | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qnadmin b/qnadmin index e13ef8f..a99607c 100755 --- a/qnadmin +++ b/qnadmin @@ -151,11 +151,12 @@ ModuleStatus () { if [ -e qn.cfg ]; then source <( grep "^module_[abc]=" qn.cfg ) if [ -z "$module_a" ] && [ -z "$module_b" ] && [ -z "$module_c" ]; then - echo "No moudules defined in the qn.cfg file!" + echo "No moudules defined in the qn.cfg file!, please re-edit you configuration." exit 1 fi else - "ERROR: can't find the qn.cfg file" + echo "ERROR: can't find the qn.cfg configuration file!" + echo "You can use ./qnconfig to create your config file." exit 1 fi