summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-08-17 17:37:37 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-08-17 17:37:37 -0700
commitfaa9a06bf5302b246805ead12690b38c3036d802 (patch)
treeff14da1cb17502c1aad359a8a24e45c9924518c5 /service
parent1254dece5b885d3f396c8c44b659949070694443 (diff)
downloadinfinitytier-faa9a06bf5302b246805ead12690b38c3036d802.tar.gz
infinitytier-faa9a06bf5302b246805ead12690b38c3036d802.zip
Controller fixes...
Diffstat (limited to 'service')
-rw-r--r--service/OneService.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/service/OneService.cpp b/service/OneService.cpp
index 74628168..7ce45beb 100644
--- a/service/OneService.cpp
+++ b/service/OneService.cpp
@@ -1705,7 +1705,11 @@ public:
if (_controlPlane)
scode = _controlPlane->handleRequest(tc->from,tc->parser.method,tc->url,tc->headers,tc->body,data,contentType);
else scode = 500;
+ } catch (std::exception &exc) {
+ fprintf(stderr,"WARNING: unexpected exception processing control HTTP request: %s" ZT_EOL_S,exc.what());
+ scode = 500;
} catch ( ... ) {
+ fprintf(stderr,"WARNING: unexpected exception processing control HTTP request: unknown exceptino" ZT_EOL_S);
scode = 500;
}