summaryrefslogtreecommitdiff
path: root/includes
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 /includes
parent3d23e3e1cb5a6c2a27c8f58b037b9000a7c85756 (diff)
Better error handling on luaexeccells, so they can trigger their main co-routines. Also better display of said errors.
Diffstat (limited to 'includes')
-rw-r--r--includes/LuaTask.h3
1 files changed, 3 insertions, 0 deletions
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;
};