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
1 changed files with 2 additions and 1 deletions

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);
}