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:
parent
1167c31a84
commit
938502b239
1 changed files with 4 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue