util.prosodyctl: Fix undefined global access

Fri, 10 Jul 2009 02:16:52 +0100

author
Matthew Wild <mwild1@gmail.com>
date
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 file | annotate | diff | comparison | revisions
--- 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"));

mercurial