summaryrefslogtreecommitdiff
path: root/indra/llcommon
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2016-08-26 14:20:11 -0400
committerNat Goodspeed <nat@lindenlab.com>2016-08-26 14:20:11 -0400
commitabfe05c1b3d24ed820cf084ece3f3610ec35fa21 (patch)
treea5db9640e66da7aa986df1f3112d9150ce1dc976 /indra/llcommon
parentcc29b44dcfd59aa649bad62772fc3b228be40b9a (diff)
MAINT-5011: Add comments to LLCoros::toplevel() exception handlers.
Diffstat (limited to 'indra/llcommon')
-rw-r--r--indra/llcommon/llcoros.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/llcommon/llcoros.cpp b/indra/llcommon/llcoros.cpp
index 7f4c1780b8..4db63937aa 100644
--- a/indra/llcommon/llcoros.cpp
+++ b/indra/llcommon/llcoros.cpp
@@ -242,10 +242,15 @@ void LLCoros::toplevel(coro::self& self, CoroData* data, const callable_t& calla
}
catch (const LLContinueError&)
{
+ // Any uncaught exception derived from LLContinueError will be caught
+ // here and logged. This coroutine will terminate but the rest of the
+ // viewer will carry on.
LOG_UNHANDLED_EXCEPTION(STRINGIZE("coroutine " << data->mName));
}
catch (...)
{
+ // Any OTHER kind of uncaught exception will cause the viewer to
+ // crash, hopefully informatively.
CRASH_ON_UNHANDLED_EXCEPTION(STRINGIZE("coroutine " << data->mName));
}
// This cleanup isn't perfectly symmetrical with the way we initially set