//
// Written by Curtis Olson, started May 1997.
//
-// Copyright (C) 1997 - 2002 Curtis L. Olson - curt@flightgear.org
+// Copyright (C) 1997 - 2002 Curtis L. Olson - http://www.flightgear.org/~curt
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as
#endif
#include <stdlib.h>
+#include <stdio.h>
#include <simgear/compiler.h>
#include <simgear/structure/exception.hxx>
// disabled.
cerr << "Fatal error: " << t.getFormattedMessage()
<< "\n (received from " << t.getOrigin() << ')' << endl;
- exit(1);
+ } catch (...) {
+ cerr << "Unknown exception in the main loop. Aborting..." << endl;
+ perror("Possible cause");
}
return 0;