@cryptotaxi247 / netdata-1 / commits / cd2dfe041

redirect check error messages to stderr

Jorge Romero committed May 6, 2016 at 15:57 UTC cd2dfe041e0f51eaea05c0bc566dcda2e952d189
1 file changed +3 -3
charts.d/tomcat.chart.sh
+3 -3
@@ -33,15 +33,15 @@ tomcat_check() {
33
34 # check if url, username, passwords are set
35 if [ -z "${tomcat_url}" ]; then
36 - echo "tomcat url is unset or set to the empty string"
36 + echo >&2 "tomcat url is unset or set to the empty string"
37 return 1
38 fi
39 if [ -z "${tomcatUser}" ]; then
40 - echo "tomcat user is unset or set to the empty string"
40 + echo >&2 "tomcat user is unset or set to the empty string"
41 return 1
42 fi
43 if [ -z "${tomcatPassword}" ]; then
44 - echo "tomcat password is unset or set to the empty string"
44 + echo >&2 "tomcat password is unset or set to the empty string"
45 return 1
46 fi
47