diff options
author | Pixel <Pixel> | 2001-11-04 23:23:13 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2001-11-04 23:23:13 +0000 |
commit | 0f80b4e1f92f9b12115121e55619e6e810831d41 (patch) | |
tree | 1f44a9deb2f1e581507c31e4e26b37a7f646a1dd /src | |
parent | 50cef89f47dbc14b00639351463aba20ca4320a0 (diff) |
Better exception handling.
Diffstat (limited to 'src')
-rw-r--r-- | src/Main.cc | 5 | ||||
-rw-r--r-- | src/Makefile.am | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/Main.cc b/src/Main.cc index cd74b60..e712a95 100644 --- a/src/Main.cc +++ b/src/Main.cc @@ -125,6 +125,11 @@ int main(int argc, char ** argv) { exit(-1); } + catch (...) { + cerr << "Unknow exception.\n" << endl; + exit(-1); + } + delete in; exit(0); } diff --git a/src/Makefile.am b/src/Makefile.am index 20c7ab2..3f87315 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,7 +1,7 @@ localedir = $(datadir)/locale DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ -AM_CFLAGS = -O3 -Wall -Wstrict-prototypes $(CFLAGS) -AM_CXXFLAGS = -O3 -Wall -Wstrict-prototypes $(CXXFLAGS) +AM_CFLAGS = -O3 -Wall -Wstrict-prototypes +AM_CXXFLAGS = -O3 -Wall -Wstrict-prototypes INCLUDES = -I. -I.. -I$(includedir) -I../include bin_PROGRAMS = Baltisot |