From c5cfc6d194ab81cc6d1f1143ebfb8b6f93dddede Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 16 Feb 2012 10:26:21 +0100 Subject: Fix uncaught Exception. --- server/src/transactionhandler.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server') diff --git a/server/src/transactionhandler.cc b/server/src/transactionhandler.cc index fd4705a..d167029 100644 --- a/server/src/transactionhandler.cc +++ b/server/src/transactionhandler.cc @@ -344,12 +344,12 @@ std::string handleTransaction(Request &request, try { answer += handleRequest(request, env, session); - } catch( Exception &e ) { - ERR(server, "Request error: %s\n", e.what()); - return error_box(xml_encode(e.what())); } 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