diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2012-02-16 10:20:51 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2012-02-16 10:20:51 +0100 |
commit | b3692e651d97285bab2a175846bca3a23a34311c (patch) | |
tree | 4e08c555bca163aa584c408c86353c04a6e3e1d6 /server | |
parent | 9edc38d045fe9a278f675c52998fe5b7c390bacc (diff) |
Fix uncaught Exception.
Diffstat (limited to 'server')
-rw-r--r-- | server/src/transactionhandler.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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())); |