lint: 'with-networking-fail-safe' handles 'gnutls-error' exceptions.
* guix/lint.scm (call-with-networking-fail-safe): Add clause for 'gnutls-error'.
This commit is contained in:
parent
6dafd60b33
commit
468a5f8676
1 changed files with 6 additions and 0 deletions
|
@ -68,6 +68,7 @@ (define-module (guix lint)
|
|||
. guix:open-connection-for-uri)))
|
||||
#:use-module (web request)
|
||||
#:use-module (web response)
|
||||
#:autoload (gnutls) (error->string)
|
||||
#:use-module (srfi srfi-1)
|
||||
#:use-module (srfi srfi-6) ;Unicode string ports
|
||||
#:use-module (srfi srfi-9)
|
||||
|
@ -1162,6 +1163,11 @@ (define (call-with-networking-fail-safe message error-value proc)
|
|||
message
|
||||
(tls-certificate-error-string args))
|
||||
error-value)
|
||||
(('gnutls-error error function _ ...)
|
||||
(warning (G_ "~a: TLS error in '~a': ~a~%")
|
||||
message
|
||||
function (error->string error))
|
||||
error-value)
|
||||
((and ('system-error _ ...) args)
|
||||
(let ((errno (system-error-errno args)))
|
||||
(if (member errno (list ECONNRESET ECONNABORTED ECONNREFUSED))
|
||||
|
|
Loading…
Reference in a new issue