From 1868e7deba0f6e3d7ad31d0446de19e819c87776 Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Sat, 10 Dec 2022 16:41:51 +0100 Subject: [PATCH] Improved system error message --- src/throw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/throw.cpp b/src/throw.cpp index 63b2e46..74b34e8 100644 --- a/src/throw.cpp +++ b/src/throw.cpp @@ -33,7 +33,7 @@ void __throw_if_min1(int x, if (x == -1) { error_code ec {errno, system_category()}; ostringstream ec_str; - ec_str << "system error " << ec.value() << ": " << ec.message(); + ec_str << "system error " << ec.value(); string msg {combine_message_elements(file, line, message, ec_str.str().c_str())}; throw system_error {ec, msg}; }