make abortion more efficient ;-)
This commit is contained in:
parent
d33b6da077
commit
1ece476355
1 changed files with 2 additions and 2 deletions
|
@ -196,7 +196,7 @@ int main ( int argc, char **argv ) {
|
|||
try {
|
||||
atexit(fgExitCleanup);
|
||||
fgMainInit(argc, argv);
|
||||
} catch (sg_throwable &t) {
|
||||
} catch (const sg_throwable &t) {
|
||||
// We must use cerr rather than
|
||||
// logging, since logging may be
|
||||
// disabled.
|
||||
|
@ -204,7 +204,7 @@ int main ( int argc, char **argv ) {
|
|||
if (!t.getOrigin().empty())
|
||||
cerr << " (received from " << t.getOrigin() << ')' << endl;
|
||||
|
||||
} catch (string &s) {
|
||||
} catch (const string &s) {
|
||||
cerr << "Fatal error: " << s << endl;
|
||||
|
||||
} catch (...) {
|
||||
|
|
Loading…
Add table
Reference in a new issue