]> git.mxchange.org Git - flightgear.git/commitdiff
sg_throwable's "origin" argument is optional and defaults to an empty
authormfranz <mfranz>
Sun, 12 Jun 2005 16:01:49 +0000 (16:01 +0000)
committermfranz <mfranz>
Sun, 12 Jun 2005 16:01:49 +0000 (16:01 +0000)
string. "(received from )" doesn't really look good.

src/Main/bootstrap.cxx

index efedf8657289e4d8794409139c8b788b79718318..814cab6017f404ce1a72cebce9592c12abb56b6d 100644 (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");