Skip to content

Commit 6ad20b2

Browse files
committed
be specific, that SSL error occured
1 parent 9164804 commit 6ad20b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crawler.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ static ssize_t sec_read(const mcrawler_url *u, unsigned char *buf, const size_t
346346
}
347347
const int n = sprintf(errbuf, "Downloading content failed");
348348
if (last_e && n > 0) {
349-
sprintf(errbuf + n, " (%.200s)", ERR_reason_error_string(last_e));
349+
sprintf(errbuf + n, " (SSL error: %.200s)", ERR_reason_error_string(last_e));
350350
}
351351
return MCURL_IO_ERROR;
352352
default:

0 commit comments

Comments
 (0)