From cfe57f19311b4d7882d2b155ec4a5a6642b6e1f4 Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 1 Jan 2020 12:53:11 +0100 Subject: [PATCH] =?UTF-8?q?Actually=20throw=20ParseException.=20?= =?UTF-8?q?=F0=9F=A4=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/document.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/document.cpp b/src/document.cpp index 6988ca2..a01a07e 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -141,8 +141,11 @@ void Document::parse() BOOST_LOG_TRIVIAL(debug) << "RSS detected."; 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)