Skip to content

Commit

Permalink
Add more details to error message
Browse files Browse the repository at this point in the history
Change-Id: I250f41eac1f876d19b297a0b5966ffe30c5298d3
Reviewed-on: http://review.couchbase.org/9875
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
  • Loading branch information
avsej authored and trondn committed Sep 30, 2011
1 parent d27cfbb commit 4da5033
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/instance.c
Expand Up @@ -540,8 +540,11 @@ static void libchouchbase_instance_connect_handler(evutil_socket_t sock,
}

if (instance->curr_ai == NULL) {
char errinfo[1024];
snprintf(errinfo, sizeof(errinfo), "Failed to look up \"%s:%s\"",
instance->host, instance->port);
libcouchbase_error_handler(instance, LIBCOUCHBASE_NETWORK_ERROR,
"Failed to lookup host!\n");
errinfo);
return ;
}

Expand Down

0 comments on commit 4da5033

Please sign in to comment.