diff options
author | Alexander Batischev <eual.jp@gmail.com> | 2018-04-30 15:01:05 +0300 |
---|---|---|
committer | Alexander Batischev <eual.jp@gmail.com> | 2018-04-30 15:01:05 +0300 |
commit | 869fc00f685dfdfa7f55ffda3c1caa318c971320 (patch) | |
tree | 94a3f92a3f4f5279bbc233d6e0be93956d7695de /newsboat.cpp | |
parent | 58a94c3372ac0575554cc6a3c633c894b91e5b8e (diff) |
Newsboat: catch newsboat::exception
Bug found by Coverity Scan.
Diffstat (limited to 'newsboat.cpp')
-rw-r--r-- | newsboat.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/newsboat.cpp b/newsboat.cpp index f3c385f3..86cb36ea 100644 --- a/newsboat.cpp +++ b/newsboat.cpp @@ -42,6 +42,12 @@ int main(int argc, char * argv[]) { _("Caught newsboat::matcherexception with message: %s"), e.what()) << std::endl; ::exit(EXIT_FAILURE); + } catch (const newsboat::exception& e) { + std::cerr + << strprintf::fmt( + _("Caught newsboat::exception with message: %s"), e.what()) + << std::endl; + ::exit(EXIT_FAILURE); } rsspp::parser::global_cleanup(); |