From 938502b23931532eb0552beb399af7dc5e8c86dd Mon Sep 17 00:00:00 2001 From: mfranz Date: Sun, 12 Jun 2005 16:01:49 +0000 Subject: [PATCH] sg_throwable's "origin" argument is optional and defaults to an empty string. "(received from )" doesn't really look good. --- src/Main/bootstrap.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Main/bootstrap.cxx b/src/Main/bootstrap.cxx index efedf8657..814cab601 100644 --- a/src/Main/bootstrap.cxx +++ b/src/Main/bootstrap.cxx @@ -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"); -- 2.39.5