@@ -43,7 +43,11 @@ (define-module (guix scripts substitute)
#:select (uri-abbreviation nar-uri-abbreviation
(open-connection-for-uri
. guix:open-connection-for-uri)))
- #:autoload (gnutls) (error/invalid-session error/again error/interrupted)
+ #:autoload (gnutls) (error/invalid-session
+ error/again
+ error/interrupted
+ error/push-error
+ error/pull-error)
#:use-module (guix progress)
#:use-module ((guix build syscalls)
#:select (set-thread-name))
@@ -426,6 +430,11 @@ (define (call-with-cached-connection uri proc)
(memq (first args)
(list error/invalid-session
+ ;; "Error in the push function" is
+ ;; usually a transient error.
+ error/push-error
+ error/pull-error
+
;; XXX: These two are not properly handled in
;; GnuTLS < 3.7.3, in
;; 'write_to_session_record_port'; see