util.prosodyctl: Fix undefined global access
authorMatthew Wild <mwild1@gmail.com>
Fri, 10 Jul 2009 02:16:52 +0100
changeset 1515 9991329e6b67
parent 1514 0c706c3d2e30
child 1516 4c9bd0527d1d
util.prosodyctl: Fix undefined global access
util/prosodyctl.lua
--- a/util/prosodyctl.lua	Fri Jul 10 02:11:00 2009 +0100
+++ b/util/prosodyctl.lua	Fri Jul 10 02:16:52 2009 +0100
@@ -58,7 +58,7 @@
 	
 	local file, err = io.open(pidfile);
 	if not file then
-		return false, "pidfile-read-failed", ret;
+		return false, "pidfile-read-failed", err;
 	end
 	
 	local pid = tonumber(file:read("*a"));