Changeset

1515:9991329e6b67

util.prosodyctl: Fix undefined global access
author Matthew Wild <mwild1@gmail.com>
date Fri, 10 Jul 2009 02:16:52 +0100
parents 1514:0c706c3d2e30
children 1516:4c9bd0527d1d
files util/prosodyctl.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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"));