reorganized error codes
This commit is contained in:
@@ -130,7 +130,7 @@ namespace libtorrent
|
||||
"duplicate peer-id",
|
||||
"torrent removed",
|
||||
"packet too large",
|
||||
"failed to parse HTTP response",
|
||||
"",
|
||||
"HTTP error",
|
||||
"missing location header",
|
||||
"invalid redirection",
|
||||
@@ -156,12 +156,29 @@ namespace libtorrent
|
||||
"pex message too large",
|
||||
"invalid pex message",
|
||||
"invalid lt_tracker message",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
// natpmp errors
|
||||
"unsupported protocol version",
|
||||
"not authorized to create port map (enable NAT-PMP on your router)",
|
||||
"network failure",
|
||||
"out of resources",
|
||||
"unsupported opcode",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
// fastresume errors
|
||||
"missing or invalid 'file sizes' entry",
|
||||
"no files in resume data",
|
||||
@@ -183,7 +200,18 @@ namespace libtorrent
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
// HTTP errors
|
||||
"Invalid HTTP header",
|
||||
"missing Location header in HTTP redirect",
|
||||
"failed to decompress HTTP response",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
// i2p errors
|
||||
"no i2p router is set up",
|
||||
};
|
||||
if (ev < 0 || ev >= sizeof(msgs)/sizeof(msgs[0]))
|
||||
|
Reference in New Issue
Block a user