From 5789f35f5e3cef9c00a2c681d2b2b2fded52363c Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 11 May 2012 21:43:37 +0900 Subject: [PATCH] Print error message using spdylay_strerror in spdycli --- examples/spdycli.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/spdycli.c b/examples/spdycli.c index 9a0bedf..f9e2d75 100644 --- a/examples/spdycli.c +++ b/examples/spdycli.c @@ -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); }