Mercurial > prosody-hg
comparison core/certmanager.lua @ 2739:7339c2720b39
certmanager: Friendlier error reporting on OpenWRT and other cases where we don't understand the OpenSSL error
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Fri, 05 Mar 2010 15:00:11 +0000 |
| parents | e253dd4714d5 |
| children | 9bb2da325d4d 3976bad56640 |
comparison
equal
deleted
inserted
replaced
| 2738:e253dd4714d5 | 2739:7339c2720b39 |
|---|---|
| 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 |
