summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index cabe6dd..737ef8a 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -33,8 +33,8 @@ int main() {
// std::cout << "URL: " << src.GetValue() << std::endl;
RSS(src.GetValue()).print_latest(span);
}
- } catch (char *ex) {
- std::cout << "failed to read config file: " << ex << std::endl;
+ } catch (std::exception& err) {
+ std::cout << "failed to read config file: " << err.what() << std::endl;
return 1;
}