summaryrefslogtreecommitdiff
path: root/src/LuaTask.cc
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2012-09-05 23:05:21 -0700
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2012-09-05 23:05:21 -0700
commit79303cf5227bb21c203daa130c73cc28702cdf8e (patch)
tree60f2efc279450ef3ea0a10ba0094a23afb6b82aa /src/LuaTask.cc
parent3d23e3e1cb5a6c2a27c8f58b037b9000a7c85756 (diff)
Better error handling on luaexeccells, so they can trigger their main co-routines. Also better display of said errors.
Diffstat (limited to 'src/LuaTask.cc')
-rw-r--r--src/LuaTask.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/LuaTask.cc b/src/LuaTask.cc
index 7e0b256..12d4435 100644
--- a/src/LuaTask.cc
+++ b/src/LuaTask.cc
@@ -57,7 +57,12 @@ void Balau::LuaMainTask::Do() {
}
void Balau::LuaTask::Do() {
- m_cell->run(L);
+ try {
+ m_cell->run(L);
+ }
+ catch (...) {
+ m_cell->setError();
+ }
if (m_cell->m_detached)
delete m_cell;
else