From 0f80b4e1f92f9b12115121e55619e6e810831d41 Mon Sep 17 00:00:00 2001 From: Pixel Date: Sun, 4 Nov 2001 23:23:13 +0000 Subject: Better exception handling. --- src/Main.cc | 5 +++++ src/Makefile.am | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3