a bit more error reporting

This commit is contained in:
tastytea 2018-04-29 17:14:48 +02:00
parent ede97e65fe
commit b312e89c64
Signed by: tastytea
GPG Key ID: 59346E0EA35C67E5
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.7)
project (mastorss
VERSION 0.5.11
VERSION 0.5.12
LANGUAGES CXX
)

View File

@ -65,6 +65,8 @@ int main(int argc, char *argv[])
ret = http_get(feedurl, answer, "mastorss/" + (string)global::version);
if (ret != 0)
{
std::cerr << "Error code: " << ret << '\n';
std::cerr << answer << '\n';
return ret;
}
entries = parse_website(answer);