From b084a2868f5f626ee6545d8259e780ebddd547ce Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Tue, 11 Oct 2005 00:41:01 +0000 Subject: [PATCH] Improving error handling --- src/damon.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/damon.c b/src/damon.c index a11d5d3..996e68e 100644 --- a/src/damon.c +++ b/src/damon.c @@ -47,8 +47,10 @@ static int _damon(void) break; if((hosts[i].appclient = appclient_new_event("Probe", event)) == NULL) + { + _damon_error(hosts[i].hostname, 0); break; - fprintf(stderr, "AppClientNew => %p\n", hosts[i].appclient); + } } if(hosts[i].hostname == NULL) {