1
0
mirror of https://github.com/moparisthebest/spdylay synced 2024-08-13 17:03:54 -04:00

Print error message using spdylay_strerror in spdycli

This commit is contained in:
Tatsuhiro Tsujikawa 2012-05-11 21:43:37 +09:00
parent c1d360469a
commit 5789f35f5e

View File

@ -126,7 +126,8 @@ static void dief(const char *func, const char *msg)
*/
static void diec(const char *func, int error_code)
{
fprintf(stderr, "FATAL: %s: error_code=%d\n", func, error_code);
fprintf(stderr, "FATAL: %s: error_code=%d, msg=%s\n", func, error_code,
spdylay_strerror(error_code));
exit(EXIT_FAILURE);
}