Skip to content

Commit

Permalink
be specific, that SSL error occured
Browse files Browse the repository at this point in the history
  • Loading branch information
pracj3am committed Oct 25, 2024
1 parent c650bfe commit 331615c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crawler.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ static ssize_t sec_read(const mcrawler_url *u, unsigned char *buf, const size_t
}
const int n = sprintf(errbuf, "Downloading content failed");
if (last_e && n > 0) {
sprintf(errbuf + n, " (%.200s)", ERR_reason_error_string(last_e));
sprintf(errbuf + n, " (SSL error: %.200s)", ERR_reason_error_string(last_e));
}
return MCURL_IO_ERROR;
default:
Expand Down

0 comments on commit 331615c

Please sign in to comment.