Melchior FRANZ:

There are constructors for sg_io_exception that don't initialize the
location. In this case getFormattedMessage does still output an extra
line with " at" followed by ... nothing. Looks silly.
This commit is contained in:
ehofman
2003-12-19 17:44:30 +00:00
parent 2e5c4b4515
commit 6a19bbee7d

View File

@@ -229,8 +229,11 @@ const string
sg_io_exception::getFormattedMessage () const
{
string ret = getMessage();
ret += "\n at ";
ret += getLocation().asString();
string loc = getLocation().asString();
if (loc.length()) {
ret += "\n at ";
ret += loc;
}
return ret;
}