diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2012-02-16 10:26:21 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2012-02-16 10:26:21 +0100 |
commit | c5cfc6d194ab81cc6d1f1143ebfb8b6f93dddede (patch) | |
tree | 8ee6c6030d53b276ddb22ed5767f42f24ee98ab4 /server/src | |
parent | b3692e651d97285bab2a175846bca3a23a34311c (diff) |
Fix uncaught Exception.
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/transactionhandler.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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 += "</pracro>\n"; |