1
0
Fork 0

sg_throwable's "origin" argument is optional and defaults to an empty

string. "(received from )" doesn't really look good.
This commit is contained in:
mfranz 2005-06-12 16:01:49 +00:00
parent 1167c31a84
commit 938502b239

View file

@ -195,8 +195,10 @@ int main ( int argc, char **argv ) {
// We must use cerr rather than
// logging, since logging may be
// disabled.
cerr << "Fatal error: " << t.getFormattedMessage()
<< "\n (received from " << t.getOrigin() << ')' << endl;
cerr << "Fatal error: " << t.getFormattedMessage() << endl;
if (!t.getOrigin().empty())
cerr << " (received from " << t.getOrigin() << ')' << endl;
} catch (...) {
cerr << "Unknown exception in the main loop. Aborting..." << endl;
perror("Possible cause");