From 91aa91bed6040c35de492c42b3eb1c841c37a81f Mon Sep 17 00:00:00 2001 From: Marvin Date: Sat, 23 May 2015 17:36:32 +0200 Subject: [PATCH] Added error message if gsquery.py doesn't exists --- functions/fn_monitor_query | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/functions/fn_monitor_query b/functions/fn_monitor_query index 6c03dad44..329d49765 100644 --- a/functions/fn_monitor_query +++ b/functions/fn_monitor_query @@ -89,4 +89,7 @@ if [ -f "${rootdir}/gsquery.py" ]; then ${rootdir}/gsquery.py -a ${ip} -p ${port} -e ${engine} exit fi -fi \ No newline at end of file +else + fn_printfail "Could not find ${rootdir}/gsquery.py" + fn_scriptlog "Could not find ${rootdir}/gsquery.py" +fi