diff --git a/api/ftp/ftp.go b/api/ftp/ftp.go index ecce439..8cc7de5 100644 --- a/api/ftp/ftp.go +++ b/api/ftp/ftp.go @@ -104,6 +104,9 @@ func DownloadFile(ac *client.AlpaconClient, src string, dest string) error { } err = utils.SaveFile(filepath.Join(dest, filepath.Base(remotePath)), data) + if err != nil { + return err + } return nil }