http2: more and better error checking
1 - fixes the warnings when built without http2 support 2 - adds CURLE_HTTP2, a new error code for errors detected by nghttp2 basically when they are about http2 specific things.
This commit is contained in:
@@ -105,6 +105,9 @@ curl_easy_strerror(CURLcode error)
|
||||
case CURLE_FTP_CANT_GET_HOST:
|
||||
return "FTP: can't figure out the host in the PASV response";
|
||||
|
||||
case CURLE_HTTP2:
|
||||
return "Error in the HTTP2 framing layer";
|
||||
|
||||
case CURLE_FTP_COULDNT_SET_TYPE:
|
||||
return "FTP: couldn't set file type";
|
||||
|
||||
@@ -296,7 +299,6 @@ curl_easy_strerror(CURLcode error)
|
||||
return "The max connection limit is reached";
|
||||
|
||||
/* error codes not used by current libcurl */
|
||||
case CURLE_OBSOLETE16:
|
||||
case CURLE_OBSOLETE20:
|
||||
case CURLE_OBSOLETE24:
|
||||
case CURLE_OBSOLETE29:
|
||||
|
Reference in New Issue
Block a user