37 reason = "Check that the permissions allow Prosody to read this file."; |
37 reason = "Check that the permissions allow Prosody to read this file."; |
38 elseif reason == "No such file or directory" then |
38 elseif reason == "No such file or directory" then |
39 reason = "Check that the path is correct, and the file exists."; |
39 reason = "Check that the path is correct, and the file exists."; |
40 elseif reason == "system lib" then |
40 elseif reason == "system lib" then |
41 reason = "Previous error (see logs), or other system error."; |
41 reason = "Previous error (see logs), or other system error."; |
|
42 elseif reason == "(null)" or not reason then |
|
43 reason = "Check that the file exists and the permissions are correct"; |
42 else |
44 else |
43 reason = "Reason: "..tostring(reason or "unknown"):lower(); |
45 reason = "Reason: "..tostring(reason):lower(); |
44 end |
46 end |
45 log("error", "SSL/TLS: Failed to load %s: %s", file, reason); |
47 log("error", "SSL/TLS: Failed to load %s: %s", file, reason); |
46 else |
48 else |
47 log("error", "SSL/TLS: Error initialising for host %s: %s", host, err ); |
49 log("error", "SSL/TLS: Error initialising for host %s: %s", host, err ); |
48 end |
50 end |