Comparison

prosodyctl @ 5150:81b49bb0ecc7

prosodyctl: Abort if unable to load util.pposix
author Kim Alvefur <zash@zash.se>
date Wed, 19 Sep 2012 23:25:10 +0200
parent 5149:b3e9b3576056
child 5151:dfe6a70efaa2
comparison
equal deleted inserted replaced
5149:b3e9b3576056 5150:81b49bb0ecc7
164 pposix.setenv("HOME", data_path); 164 pposix.setenv("HOME", data_path);
165 else 165 else
166 print("Error: Unable to load pposix module. Check that Prosody is installed correctly.") 166 print("Error: Unable to load pposix module. Check that Prosody is installed correctly.")
167 print("For more help send the below error to us through http://prosody.im/discuss"); 167 print("For more help send the below error to us through http://prosody.im/discuss");
168 print(tostring(pposix)) 168 print(tostring(pposix))
169 os.exit(1);
169 end 170 end
170 171
171 local function test_writeable(filename) 172 local function test_writeable(filename)
172 local f, err = io.open(filename, "a"); 173 local f, err = io.open(filename, "a");
173 if not f then 174 if not f then