From e7e222f0356c6e8c6dbef80c27a016093979cfb7 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 3 Jan 2020 03:26:00 +0100 Subject: [PATCH] Don't throw error if watchwords.json does not exist. --- src/document.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/document.cpp b/src/document.cpp index 275a27a..9354b20 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -279,8 +279,9 @@ void Document::parse_watchwords() } else { - throw FileException{"File Not found:" - + (_cfg.get_config_dir() /= "watchwords.json").string()}; + BOOST_LOG_TRIVIAL(warning) << "File Not found: " << + (_cfg.get_config_dir() /= "watchwords.json").string(); + return; } const auto &tags_profile = json[_cfg.profile]["tags"];