Update system_error::what to use error_code::what

This commit is contained in:
Peter Dimov committed 2021-10-02 15:00:40 +03:00
1 parent 01676ae42f
commit bb775c071a
6 files changed
+60 -28

No files matched your search

+1 -11
View File
@@ -35,17 +35,7 @@ private:
r += ": ";
}
r += ec.message();
if( ec.has_location() )
{
r += " [";
r += ec.to_string();
r += " at ";
r += ec.location().to_string();
r += "]";
}
r += ec.what();
return r;
}