# HG changeset patch # User Matthew Wild # Date 1267801211 0 # Node ID 7339c2720b3947eae1b6adff5b8cbd0ac20c8021 # Parent e253dd4714d517121a6a85c3c12cbb90866efaf3 certmanager: Friendlier error reporting on OpenWRT and other cases where we don't understand the OpenSSL error diff -r e253dd4714d5 -r 7339c2720b39 core/certmanager.lua --- 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