mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 07:12:54 -04:00
try to failure reason textual instead of numeric
This commit is contained in:
parent
d03bc6f8ea
commit
ae0e4a422a
1 changed files with 2 additions and 1 deletions
|
|
@ -326,10 +326,11 @@ class session(object):
|
|||
if debug: print "%s: %s" % (self.id, msg)
|
||||
|
||||
def die(self, r, reason, uri=None):
|
||||
self.log("Session from %s died for reason %s" % (web.ctx.ip, reason))
|
||||
self.kill()
|
||||
r.failure.cause = reason
|
||||
if uri: r.failure.URI = uri
|
||||
self.log("Session from %s died for reason %s" % (web.ctx.ip, str(r.failure).split(":")[0].strip())
|
||||
if uri: self.log("error URI: %s" % uri)
|
||||
|
||||
def handleclientfailure(self, m, r):
|
||||
if r.failure.IsInitialized(): return
|
||||
|
|
|
|||
Loading…
Reference in a new issue