summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-11-03 20:55:16 -0400
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-11-03 20:55:16 -0400
commit92c7070aa85425041f856d7e4203bdd1ae713c33 (patch)
treeb8f351408eed9a7525c9fc9a3c072cc66af9dc5b /service
parentb68bca35db1e8515ad981f8ebaef92637fa5b036 (diff)
downloadinfinitytier-92c7070aa85425041f856d7e4203bdd1ae713c33.tar.gz
infinitytier-92c7070aa85425041f856d7e4203bdd1ae713c33.zip
RethinkDB fixes.
Diffstat (limited to 'service')
-rw-r--r--service/OneService.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/service/OneService.cpp b/service/OneService.cpp
index e962fb5b..66cb708d 100644
--- a/service/OneService.cpp
+++ b/service/OneService.cpp
@@ -867,10 +867,14 @@ public:
clockShouldBe = now + (uint64_t)delay;
_phy.poll(delay);
}
+ } catch (std::exception &e) {
+ Mutex::Lock _l(_termReason_m);
+ _termReason = ONE_UNRECOVERABLE_ERROR;
+ _fatalErrorMessage = std::string("unexpected exception in main thread: ")+e.what();
} catch ( ... ) {
Mutex::Lock _l(_termReason_m);
_termReason = ONE_UNRECOVERABLE_ERROR;
- _fatalErrorMessage = "unexpected exception in main thread";
+ _fatalErrorMessage = "unexpected exception in main thread: unknown exception";
}
try {