summaryrefslogtreecommitdiff
path: root/src/BLua.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/BLua.cc')
-rw-r--r--src/BLua.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/BLua.cc b/src/BLua.cc
index 2bc726e..e729d83 100644
--- a/src/BLua.cc
+++ b/src/BLua.cc
@@ -253,7 +253,10 @@ int Balau::LuaStatics::callwrap(lua_State * __L, lua_CFunction func) {
L.push((void *) &s_signature);
r = L.yield(L.gettop());
}
- catch (Balau::GeneralException & e) {
+ catch (EAgain & e) {
+ L.error("The C callback from Lua has thrown an EAgain - you can't do that, you have to wrap it using Lua::yield. The application will now crash, because this task will stop, but the event in the EAgain will later try to wake it up.");
+ }
+ catch (GeneralException & e) {
L.error(String("GeneralException: ") + e.getMsg());
}
// LuaJIT sucks sometime.