Comparison

prosodyctl @ 5139:0db82143ac00

prosodyctl: Abort if unable to load util.pposix
author Kim Alvefur <zash@zash.se>
date Wed, 19 Sep 2012 23:25:10 +0200
parent 5138:7dc57dfaebbe
child 5140:5b600514f654
comparison
equal deleted inserted replaced
5138:7dc57dfaebbe 5139:0db82143ac00
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