--- a/src/nexus_lua.h Wed Apr 01 00:57:34 2009 +0300
+++ b/src/nexus_lua.h Wed Apr 01 01:41:08 2009 +0300
@@ -31,4 +31,13 @@
*/
void nexus_lua_destroy (struct nexus_lua *lua);
+/**
+ * Handle a Lua error by converting the given error code into a ERR_LUA_* code, inspecting the error object at
+ * the top of the stack.
+ *
+ * Please note that the resulting error_info points into strings inside the lua stack - once you pop the error, the
+ * error_info might not be valid anymore.
+ */
+err_t nexus_lua_error (lua_State *L, int ret, struct error_info *err);
+
#endif /* NEXUS_LUA_H */