summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-06-26 14:07:46 +0000
committersasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-06-26 14:07:46 +0000
commita042b8c4adefccae2030d5b6820f2b00870e0a54 (patch)
treea3134670fd7091ab3ec9ec2d5162d09f3b37f096 /src
parent9d240eca134c2433ac0a548a2b7fbe1fccc7c66d (diff)
downloadzabbix-a042b8c4adefccae2030d5b6820f2b00870e0a54.tar.gz
zabbix-a042b8c4adefccae2030d5b6820f2b00870e0a54.tar.xz
zabbix-a042b8c4adefccae2030d5b6820f2b00870e0a54.zip
- [DEV-150] added error reporting for zabbix_get
git-svn-id: svn://svn.zabbix.com/trunk@5801 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src')
-rw-r--r--src/zabbix_get/zabbix_get.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/zabbix_get/zabbix_get.c b/src/zabbix_get/zabbix_get.c
index f821c179..a9086e1f 100644
--- a/src/zabbix_get/zabbix_get.c
+++ b/src/zabbix_get/zabbix_get.c
@@ -157,6 +157,9 @@ static int get_value(
}
zbx_tcp_close(&s);
+ if (FAIL == ret)
+ zbx_error("Get value error: %s", zbx_tcp_strerror());
+
return ret;
}