diff options
author | aristocratos <gnmjpl@gmail.com> | 2021-10-01 15:24:41 +0200 |
---|---|---|
committer | aristocratos <gnmjpl@gmail.com> | 2021-10-01 15:24:41 +0200 |
commit | a15f961b2f0fe642ee61e2331c0d109fab7e9b05 (patch) | |
tree | e35138f685d8a25270071fe200786fb9c6f3c98e /src | |
parent | 8d393b858feb7ddf8ebe044cfe0ffa5e3bf906ae (diff) |
Updated Prerequisites
Diffstat (limited to 'src')
-rw-r--r-- | src/btop_tools.cpp | 3 |
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); } |