Add missing NGHTTP2_ERR_BAD_PREFACE to nghttp2_strerror

This commit is contained in:
Tatsuhiro Tsujikawa 2014-09-17 23:25:47 +09:00
parent b2f88f8fe3
commit 727662257c
1 changed files with 2 additions and 0 deletions

View File

@ -225,6 +225,8 @@ const char* nghttp2_strerror(int error_code)
return "Out of memory"; return "Out of memory";
case NGHTTP2_ERR_CALLBACK_FAILURE: case NGHTTP2_ERR_CALLBACK_FAILURE:
return "The user callback function failed"; return "The user callback function failed";
case NGHTTP2_ERR_BAD_PREFACE:
return "Received bad connection preface";
default: default:
return "Unknown error code"; return "Unknown error code";
} }