From 9f21c5811ac6dd66702593c5a84371099d57450e Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 28 Feb 2019 15:47:25 +0100 Subject: [PATCH] Changed error codes for curlpp errors. --- README.md | 4 ++-- src/http.cpp | 4 ++-- src/mastodon-cpp.hpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index fe0c830..307f9ac 100644 --- a/README.md +++ b/README.md @@ -86,8 +86,8 @@ g++ -std=c++14 -lmastodon-cpp example.cpp | 78 | URL changed (HTTP 301 or 308) | | 110 | Connection timed out | | 111 | Connection refused (check http_error_code) | -| 132 | curlpp runtime error | -| 133 | curlpp logic error | +| 192 | curlpp runtime error | +| 193 | curlpp logic error | | 255 | Unknown error | If you use a debug build, you get more verbose error messages. diff --git a/src/http.cpp b/src/http.cpp index d877c01..e05b1a3 100644 --- a/src/http.cpp +++ b/src/http.cpp @@ -178,7 +178,7 @@ return_call API::http::request(const method &meth, else { ttdebug << "curlpp::RuntimeError: " << e.what() << std::endl; - return { 132, e.what(), 0, "" }; + return { 192, e.what(), 0, "" }; } } catch (curlpp::LogicError &e) @@ -189,7 +189,7 @@ return_call API::http::request(const method &meth, } ttdebug << "curlpp::LogicError: " << e.what() << std::endl; - return { 133, e.what(), 0, "" }; + return { 193, e.what(), 0, "" }; } } diff --git a/src/mastodon-cpp.hpp b/src/mastodon-cpp.hpp index 6cdaf51..3e52ff5 100644 --- a/src/mastodon-cpp.hpp +++ b/src/mastodon-cpp.hpp @@ -84,8 +84,8 @@ namespace Mastodon * | 78 | URL changed (HTTP 301 or 308) | * | 110 | Connection timed out | * | 111 | Connection refused (check http_error_code) | - * | 132 | curlpp runtime error | - * | 133 | curlpp logic error | + * | 192 | curlpp runtime error | + * | 193 | curlpp logic error | * | 255 | Unknown error | * * @since before 0.11.0