Skip to content

Commit

Permalink
error message on 'Failed to connect to host'
Browse files Browse the repository at this point in the history
  • Loading branch information
pracj3am committed Jun 5, 2014
1 parent c58cb6a commit 4d233fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crawler.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ static void connectsocket(struct surl *u) {

if (result != 0) {
debugf("%d: Cannot connect, attempt to connect failed", u->index);
sprintf(u->error_msg, "Failed to connect to host");
sprintf(u->error_msg, "Failed to connect to host (%s)", strerror(result));
set_atomic_int(&u->state, SURL_S_ERROR);
close(u->sockfd);
return;
Expand Down

0 comments on commit 4d233fa

Please sign in to comment.