From ef0f64024a6ceec6d7a6411bcfaa614f94b03130 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 16 Feb 2012 10:29:14 +0100 Subject: Fix uncaught Exception. --- server/src/transactionhandler.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'server') diff --git a/server/src/transactionhandler.cc b/server/src/transactionhandler.cc index d167029..6ab3d89 100644 --- a/server/src/transactionhandler.cc +++ b/server/src/transactionhandler.cc @@ -107,7 +107,7 @@ static std::string handleCommits(Transaction &transaction, Environment &env, static std::string handleRequest(Request &request, Environment &env, Session &session) - throw(NotFoundException) + throw(NotFoundException, Exception) { std::string answer; @@ -347,9 +347,6 @@ std::string handleTransaction(Request &request, } catch( std::exception &e ) { ERR(server, "Request error: %s\n", e.what()); return error_box(xml_encode(e.what())); - } catch( ... ) { - ERR(server, "Unknown exception in handleRequest\n"); - return error_box(xml_encode("Unknown exception in handleRequest.")); } answer += "\n"; -- cgit v1.2.3