From a15f961b2f0fe642ee61e2331c0d109fab7e9b05 Mon Sep 17 00:00:00 2001 From: aristocratos Date: Fri, 1 Oct 2021 15:24:41 +0200 Subject: [PATCH] Updated Prerequisites --- README.md | 1 + src/btop_tools.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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); }