summaryrefslogtreecommitdiffstats
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
parent8d393b858feb7ddf8ebe044cfe0ffa5e3bf906ae (diff)
Updated Prerequisites
-rw-r--r--README.md1
-rw-r--r--src/btop_tools.cpp3
2 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index 9cd7ba7..1247fb5 100644
--- a/README.md
+++ b/README.md
@@ -124,6 +124,7 @@ Also needs a UTF8 locale and a font that covers:
* Unicode Block “Braille Patterns” U+2800 - U+28FF (Not needed in TTY mode or with graphs set to type: block or tty.)
* Unicode Block “Geometric Shapes” U+25A0 - U+25FF
* Unicode Block "Box Drawing" and "Block Elements" U+2500 - U+259F
+* Unicode Block "General punctuation" U+2005
### **Notice (Text rendering issues)**
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);
}