From b35b47d8c2cb3492b7b321323caeb5795090d9d7 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 15 Sep 2021 13:42:54 +0300 Subject: [PATCH] Reformat what() message slightly --- include/boost/system/system_error.hpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/include/boost/system/system_error.hpp b/include/boost/system/system_error.hpp index bc4a848..bf3f951 100644 --- a/include/boost/system/system_error.hpp +++ b/include/boost/system/system_error.hpp @@ -48,6 +48,8 @@ private: if( ec.has_location() ) { r += " ["; + r += ec.to_string(); + r += " at "; boost::source_location loc = ec.location(); @@ -62,12 +64,9 @@ private: r += to_string( loc.column() ); } - r += ": in function '"; + r += " in function '"; r += loc.function_name(); - r += "\': "; - - r += ec.to_string(); - r += "]"; + r += "\']"; } return r;