From c95b3937fef3e2c63768f1b3b1dc2c898f23d91d Mon Sep 17 00:00:00 2001 From: B Stack Date: Wed, 22 Jul 2020 11:37:03 -0400 Subject: add upstream 11.0 --- zen/system.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'zen/system.cpp') diff --git a/zen/system.cpp b/zen/system.cpp index f39fae84..23e2c343 100644 --- a/zen/system.cpp +++ b/zen/system.cpp @@ -56,7 +56,7 @@ ComputerModel zen::getComputerModel() //throw FileError const std::string stream = loadBinContainer(filePath, nullptr /*notifyUnbufferedIO*/); //throw FileError return utfTo(trimCpy(stream)); } - catch (const FileError& e) { throw SysError(e.toString()); } //errors should be further enriched by context info => SysError + catch (const FileError& e) { throw SysError(replaceCpy(e.toString(), L"\n\n", L'\n')); } //errors should be further enriched by context info => SysError }; cm.model = tryGetInfo("/sys/devices/virtual/dmi/id/product_name"); //throw SysError cm.vendor = tryGetInfo("/sys/devices/virtual/dmi/id/sys_vendor"); // @@ -103,7 +103,7 @@ std::wstring zen::getOsDescription() //throw FileError { releaseInfo = loadBinContainer("/etc/os-release", nullptr /*notifyUnbufferedIO*/); //throw FileError } - catch (const FileError& e) { throw SysError(e.toString()); } //further enrich with context info => SysError + catch (const FileError& e) { throw SysError(replaceCpy(e.toString(), L"\n\n", L'\n')); } //errors should be further enriched by context info => SysError std::string osName; std::string osVersion; -- cgit