From 79303cf5227bb21c203daa130c73cc28702cdf8e Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Wed, 5 Sep 2012 23:05:21 -0700 Subject: Better error handling on luaexeccells, so they can trigger their main co-routines. Also better display of said errors. --- src/LuaTask.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/LuaTask.cc') 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 -- cgit v1.2.3