diff --git a/CMakeLists.txt b/CMakeLists.txt index db88d59..2b2d73b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.6) project (mastorss - VERSION 0.8.4 + VERSION 0.8.5 LANGUAGES CXX ) diff --git a/src/mastorss.cpp b/src/mastorss.cpp index c3d5b56..4218897 100644 --- a/src/mastorss.cpp +++ b/src/mastorss.cpp @@ -105,7 +105,27 @@ int main(int argc, char *argv[]) if (ret != 0) { - std::cerr << "Error code: " << ret << '\n'; + switch (ret) + { + case 15: + std::cerr << "Error " << ret << ": Network error\n"; + break; + case 16: + std::cerr << "Error " << ret << ": Timeout\n"; + break; + case 403: + std::cerr << "Error " << ret << ": Forbidden\n"; + break; + case 404: + std::cerr << "Error " << ret << ": Not found\n"; + break; + case 503: + std::cerr << "Error " << ret << ": Service Unavailable\n"; + break; + default: + std::cerr << "Error " << ret << '\n'; + } + std::cerr << answer.to_object().asString() << '\n'; return ret; }