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. --- includes/LuaTask.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'includes/LuaTask.h') diff --git a/includes/LuaTask.h b/includes/LuaTask.h index 37d64fa..9c495e8 100644 --- a/includes/LuaTask.h +++ b/includes/LuaTask.h @@ -15,11 +15,14 @@ class LuaExecCell { virtual ~LuaExecCell() { } void detach() { m_detached = true; } void exec(LuaMainTask * mainTask); + bool gotError() { return m_gotError; } protected: virtual void run(Lua &) = 0; + void setError() { m_gotError = true; } private: Events::Async m_event; bool m_detached = false; + bool m_gotError = false; friend class LuaTask; }; -- cgit v1.2.3