Actually throw ParseException. 🤦
This commit is contained in:
parent
4d35ee1d66
commit
cfe57f1931
|
@ -141,8 +141,11 @@ void Document::parse()
|
||||||
BOOST_LOG_TRIVIAL(debug) << "RSS detected.";
|
BOOST_LOG_TRIVIAL(debug) << "RSS detected.";
|
||||||
parse_rss(tree);
|
parse_rss(tree);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
throw ParseException{"Could not detect type of feed."};
|
||||||
|
|
||||||
ParseException{"Could not detect type of feed."};
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Document::parse_rss(const pt::ptree &tree)
|
void Document::parse_rss(const pt::ptree &tree)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user