diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-11-03 20:55:16 -0400 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-11-03 20:55:16 -0400 |
commit | 92c7070aa85425041f856d7e4203bdd1ae713c33 (patch) | |
tree | b8f351408eed9a7525c9fc9a3c072cc66af9dc5b /service | |
parent | b68bca35db1e8515ad981f8ebaef92637fa5b036 (diff) | |
download | infinitytier-92c7070aa85425041f856d7e4203bdd1ae713c33.tar.gz infinitytier-92c7070aa85425041f856d7e4203bdd1ae713c33.zip |
RethinkDB fixes.
Diffstat (limited to 'service')
-rw-r--r-- | service/OneService.cpp | 6 |
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 { |