From 9c85951fe23df1644dab2156076016441d087ac3 Mon Sep 17 00:00:00 2001 From: Paul Kulchenko Date: Fri, 24 Jun 2022 18:32:06 -0700 Subject: [PATCH] Update script prefix for consistency and better debugging support --- tool/net/redbean.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tool/net/redbean.c b/tool/net/redbean.c index c7f9c6e64..333b2600d 100644 --- a/tool/net/redbean.c +++ b/tool/net/redbean.c @@ -4946,8 +4946,8 @@ static bool LuaRunAsset(const char *path, bool mandatory) { effectivepath.p = path; effectivepath.n = pathlen; DEBUGF("(lua) LuaRunAsset(%`'s)", path); - status = - luaL_loadbuffer(L, code, codelen, FreeLater(xasprintf("@%s", path))); + status = luaL_loadbuffer(L, code, codelen, + FreeLater(xasprintf("@%s%s", a->file ? "" : "/zip", path))); if (status != LUA_OK || LuaCallWithTrace(L, 0, 0, NULL) != LUA_OK) { LogLuaError("lua code", lua_tostring(L, -1)); lua_pop(L, 1); // pop error