summaryrefslogtreecommitdiffstats
path: root/player/lua.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/lua.c')
-rw-r--r--player/lua.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/player/lua.c b/player/lua.c
index 1ad6bff682..442a2ba073 100644
--- a/player/lua.c
+++ b/player/lua.c
@@ -377,8 +377,10 @@ static int load_lua(struct mpv_handle *client, const char *fname)
}
lua_State *L = ctx->state = luaL_newstate();
- if (!L)
+ if (!L) {
+ MP_FATAL(ctx, "Could not initialize Lua.\n");
goto error_out;
+ }
if (mp_cpcall(L, run_lua, ctx)) {
const char *err = "unknown error";