From b3692e651d97285bab2a175846bca3a23a34311c Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 16 Feb 2012 10:20:51 +0100 Subject: Fix uncaught Exception. --- server/src/transactionhandler.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server/src/transactionhandler.cc') diff --git a/server/src/transactionhandler.cc b/server/src/transactionhandler.cc index a52dd50..fd4705a 100644 --- a/server/src/transactionhandler.cc +++ b/server/src/transactionhandler.cc @@ -344,6 +344,9 @@ 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())); -- cgit v1.2.3