--- a/plugins/mod_console.lua Fri May 07 16:13:05 2010 +0500
+++ b/plugins/mod_console.lua Fri May 07 16:17:48 2010 +0500
@@ -85,9 +85,10 @@
session.env._ = data;
- local chunk, err = loadstring("return "..data);
+ local chunkname = "=console";
+ local chunk, err = loadstring("return "..data, chunkname);
if not chunk then
- chunk, err = loadstring(data);
+ chunk, err = loadstring(data, chunkname);
if not chunk then
err = err:gsub("^%[string .-%]:%d+: ", "");
err = err:gsub("^:%d+: ", "");
--- a/plugins/mod_posix.lua Fri May 07 16:13:05 2010 +0500
+++ b/plugins/mod_posix.lua Fri May 07 16:17:48 2010 +0500
@@ -82,6 +82,7 @@
end
pidfile = module:get_option("pidfile");
if pidfile then
+ local err;
local mode = stat(pidfile) and "r+" or "w+";
pidfile_handle, err = io.open(pidfile, mode);
if not pidfile_handle then