فهرست منبع

Added error message if gsquery.py doesn't exists

Marvin 11 سال پیش
والد
کامیت
91aa91bed6
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      functions/fn_monitor_query

+ 4 - 1
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
+else
+	fn_printfail "Could not find ${rootdir}/gsquery.py"
+	fn_scriptlog "Could not find ${rootdir}/gsquery.py"
+fi