summaryrefslogtreecommitdiff
path: root/modules/lua/lua_vmprep.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/lua/lua_vmprep.c')
-rw-r--r--modules/lua/lua_vmprep.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/lua/lua_vmprep.c b/modules/lua/lua_vmprep.c
index b0eb01c4..6c0ae93e 100644
--- a/modules/lua/lua_vmprep.c
+++ b/modules/lua/lua_vmprep.c
@@ -354,7 +354,12 @@ static apr_status_t vm_construct(lua_State **vm, void *params, apr_pool_t *lifec
: lua_tostring(L, 0));
return APR_EBADF;
}
- lua_pcall(L, 0, LUA_MULTRET, 0);
+ if ( lua_pcall(L, 0, LUA_MULTRET, 0) == LUA_ERRRUN ) {
+ ap_log_perror(APLOG_MARK, APLOG_ERR, 0, lifecycle_pool, APLOGNO(02613)
+ "Error loading %s: %s", spec->file,
+ lua_tostring(L, -1));
+ return APR_EBADF;
+ }
}
#ifdef AP_ENABLE_LUAJIT