diff -r 57662d96d8a8 -r f0f5046ba1b0 src/buffer_event.c --- a/src/buffer_event.c Sat Jan 15 19:46:55 2011 -0500 +++ b/src/buffer_event.c Sat Jan 15 19:51:21 2011 -0500 @@ -1,7 +1,6 @@ /* LuaEvent - Copyright (C) 2007 Thomas Harning * Licensed as LGPL - See doc/COPYING for details */ #include "buffer_event.h" -#include "luaevent.h" #include "utility.h" #include #include @@ -49,7 +48,12 @@ /* func, bufferevent */ lua_pushinteger(L, what); /* What to do w/ errors...? */ - lua_pcall(L, 2, 0, 0); + if(!lua_pcall(L, 2, 0, 0)) + { + /* FIXME: Perhaps luaevent users should be + * able to set an error handler? */ + lua_pop(L, 1); /* Pop error message */ + } } static void buffer_event_readcb(struct bufferevent *ev, void *ptr) {