a bit more error reporting
This commit is contained in:
parent
ede97e65fe
commit
b312e89c64
|
@ -1,6 +1,6 @@
|
||||||
cmake_minimum_required (VERSION 3.7)
|
cmake_minimum_required (VERSION 3.7)
|
||||||
project (mastorss
|
project (mastorss
|
||||||
VERSION 0.5.11
|
VERSION 0.5.12
|
||||||
LANGUAGES CXX
|
LANGUAGES CXX
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -65,6 +65,8 @@ int main(int argc, char *argv[])
|
||||||
ret = http_get(feedurl, answer, "mastorss/" + (string)global::version);
|
ret = http_get(feedurl, answer, "mastorss/" + (string)global::version);
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
{
|
{
|
||||||
|
std::cerr << "Error code: " << ret << '\n';
|
||||||
|
std::cerr << answer << '\n';
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
entries = parse_website(answer);
|
entries = parse_website(answer);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user