mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
ftp-client: Throw when log-in fails.
* guix/ftp-client.scm (ftp-open): When '%ftp-listen' returns something different from 220, throw instead of writing an error message.
This commit is contained in:
parent
dbc31ab25c
commit
820a40327d
1 changed files with 1 additions and 4 deletions
|
@ -109,11 +109,8 @@ (define addresses
|
|||
(%ftp-login "anonymous" "guix@example.com" s)
|
||||
(%make-ftp-connection s ai))
|
||||
(begin
|
||||
(format (current-error-port)
|
||||
"FTP to `~a' failed: ~A: ~A~%"
|
||||
host code message)
|
||||
(close s)
|
||||
#f))))
|
||||
(throw 'ftp-error s "log-in" code message)))))
|
||||
|
||||
(lambda args
|
||||
;; Connection failed, so try one of the other addresses.
|
||||
|
|
Loading…
Reference in a new issue