Reformat what() message slightly

This commit is contained in:
Peter Dimov
2021-09-15 13:42:54 +03:00
parent f21035f8af
commit b35b47d8c2

View File

@ -48,6 +48,8 @@ private:
if( ec.has_location() ) if( ec.has_location() )
{ {
r += " ["; r += " [";
r += ec.to_string();
r += " at ";
boost::source_location loc = ec.location(); boost::source_location loc = ec.location();
@ -62,12 +64,9 @@ private:
r += to_string( loc.column() ); r += to_string( loc.column() );
} }
r += ": in function '"; r += " in function '";
r += loc.function_name(); r += loc.function_name();
r += "\': "; r += "\']";
r += ec.to_string();
r += "]";
} }
return r; return r;