summaryrefslogtreecommitdiff
path: root/src/BLua.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/BLua.cc')
-rw-r--r--src/BLua.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/BLua.cc b/src/BLua.cc
index cb0e645..48a3305 100644
--- a/src/BLua.cc
+++ b/src/BLua.cc
@@ -210,10 +210,10 @@ int Balau::LuaStatics::callwrap(lua_State * __L, lua_CFunction func) {
try {
return func(__L);
}
- catch (LuaException e) {
+ catch (LuaException & e) {
L.error(String("LuaException: ") + e.getMsg());
}
- catch (Balau::GeneralException e) {
+ catch (Balau::GeneralException & e) {
L.error(String("GeneralException: ") + e.getMsg());
}
// LuaJIT sucks sometime.
@@ -486,7 +486,7 @@ const char * Balau::LuaStatics::getF(lua_State * L, void * ud, size_t * size) {
try {
*size = lf->f->read(lf->buff, BUFFERSIZE);
}
- catch (GeneralException e) {
+ catch (GeneralException & e) {
lf->exception = new GeneralException(e);
AssertHelper("LuaJIT is lame.");
}