From 344e6c8a3bf6953d6de3166d2edf51267c2f803d Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 13 Nov 2011 03:35:03 +0000 Subject: [PATCH] align error codes --- include/libtorrent/error_code.hpp | 2 ++ src/error_code.cpp | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/include/libtorrent/error_code.hpp b/include/libtorrent/error_code.hpp index b4f555665..b00efc8ee 100644 --- a/include/libtorrent/error_code.hpp +++ b/include/libtorrent/error_code.hpp @@ -211,6 +211,7 @@ namespace libtorrent reserved147, reserved148, reserved149, + // HTTP errors http_parse_error, // 150 http_missing_location, @@ -222,6 +223,7 @@ namespace libtorrent reserved157, reserved158, reserved159, + // i2p errors no_i2p_router, // 160 reserved161, diff --git a/src/error_code.cpp b/src/error_code.cpp index aba13d363..6b9b3a50a 100644 --- a/src/error_code.cpp +++ b/src/error_code.cpp @@ -169,6 +169,7 @@ namespace libtorrent "", "", "", + // natpmp errors "unsupported protocol version", "not authorized to create port map (enable NAT-PMP on your router)", @@ -180,6 +181,7 @@ namespace libtorrent "", "", "", + // fastresume errors "missing or invalid 'file sizes' entry", "no files in resume data", @@ -201,6 +203,7 @@ namespace libtorrent "", "", "", + // HTTP errors "Invalid HTTP header", "missing Location header in HTTP redirect", @@ -212,6 +215,7 @@ namespace libtorrent "", "", "", + // i2p errors "no i2p router is set up", "", @@ -223,6 +227,7 @@ namespace libtorrent "", "", "", + // tracker errors "scrape not available on tracker", "invalid tracker response", @@ -245,7 +250,6 @@ namespace libtorrent "", "", - // bdecode errors "expected string in bencoded string", "expected colon in bencoded string",