Software /
code /
prosody
Comparison
core/certmanager.lua @ 4855:a31ea431d906
certmanager: Adjust error messages to be non-specific about 'host' (so we can specify a service name instead ffor SSL)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 11 May 2012 20:24:15 +0100 |
parent | 4656:43469a2d124d |
child | 4889:0c5091b8b833 |
comparison
equal
deleted
inserted
replaced
4854:dab55c6f7710 | 4855:a31ea431d906 |
---|---|
73 elseif reason == "(null)" or not reason then | 73 elseif reason == "(null)" or not reason then |
74 reason = "Check that the file exists and the permissions are correct"; | 74 reason = "Check that the file exists and the permissions are correct"; |
75 else | 75 else |
76 reason = "Reason: "..tostring(reason):lower(); | 76 reason = "Reason: "..tostring(reason):lower(); |
77 end | 77 end |
78 log("error", "SSL/TLS: Failed to load %s: %s (host: %s)", file, reason, host); | 78 log("error", "SSL/TLS: Failed to load %s: %s (for %s)", file, reason, host); |
79 else | 79 else |
80 log("error", "SSL/TLS: Error initialising for host %s: %s (host: %s)", host, err, host); | 80 log("error", "SSL/TLS: Error initialising for %s: %s", host, err); |
81 end | 81 end |
82 end | 82 end |
83 return ctx, err; | 83 return ctx, err; |
84 end | 84 end |
85 | 85 |