Copy Paste Error / Typo

Error Created in pasv() states EPSV rather than PASV
This commit is contained in:
Dan Goldsmith 2015-04-23 14:02:53 +01:00
parent a9410e3e51
commit 9a62d18b47

2
ftp.go
View File

@ -185,7 +185,7 @@ func (c *ServerConn) pasv() (port int, err error) {
start := strings.Index(line, "(")
end := strings.LastIndex(line, ")")
if start == -1 || end == -1 {
err = errors.New("Invalid EPSV response format")
err = errors.New("Invalid PASV response format")
return
}