summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoraristocratos <gnmjpl@gmail.com>2021-10-01 15:24:41 +0200
committeraristocratos <gnmjpl@gmail.com>2021-10-01 15:24:41 +0200
commita15f961b2f0fe642ee61e2331c0d109fab7e9b05 (patch)
treee35138f685d8a25270071fe200786fb9c6f3c98e /src
parent8d393b858feb7ddf8ebe044cfe0ffa5e3bf906ae (diff)
Updated Prerequisites
Diffstat (limited to 'src')
-rw-r--r--src/btop_tools.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/btop_tools.cpp b/src/btop_tools.cpp
index c897b1b..bb75f2f 100644
--- a/src/btop_tools.cpp
+++ b/src/btop_tools.cpp
@@ -339,7 +339,8 @@ namespace Tools {
for (string readstr; getline(file, readstr); out += readstr);
}
catch (const std::exception& e) {
- throw std::runtime_error("readfile() : Exception when reading " + (string)path + " : " + e.what());
+ Logger::error("readfile() : Exception when reading " + (string)path + " : " + e.what());
+ return fallback;
}
return (out.empty() ? fallback : out);
}