forked from boostorg/system
Move location to the end of what()
This commit is contained in:
@@ -43,8 +43,12 @@ private:
|
||||
r += ": ";
|
||||
}
|
||||
|
||||
r += ec.message();
|
||||
|
||||
if( ec.has_location() )
|
||||
{
|
||||
r += " [";
|
||||
|
||||
boost::source_location loc = ec.location();
|
||||
|
||||
r += loc.file_name();
|
||||
@@ -63,11 +67,9 @@ private:
|
||||
r += "\': ";
|
||||
|
||||
r += ec.to_string();
|
||||
r += ": ";
|
||||
r += "]";
|
||||
}
|
||||
|
||||
r += ec.message();
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user