Commit 5789f35f authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Print error message using spdylay_strerror in spdycli

parent c1d36046
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment