certmanager: Friendlier error reporting on OpenWRT and other cases where we don't understand the OpenSSL error
--- a/core/certmanager.lua Fri Mar 05 14:49:56 2010 +0000
+++ b/core/certmanager.lua Fri Mar 05 15:00:11 2010 +0000
@@ -39,8 +39,10 @@
reason = "Check that the path is correct, and the file exists.";
elseif reason == "system lib" then
reason = "Previous error (see logs), or other system error.";
+ elseif reason == "(null)" or not reason then
+ reason = "Check that the file exists and the permissions are correct";
else
- reason = "Reason: "..tostring(reason or "unknown"):lower();
+ reason = "Reason: "..tostring(reason):lower();
end
log("error", "SSL/TLS: Failed to load %s: %s", file, reason);
else