Skip to content

Commit 2d30c45

Browse files
authored
Merge pull request #633 from greatroar/dev-v2-errors
Don't translate StatusPacket to os.Err(NotExist|Permission)
2 parents e55eb41 + 63dbfdf commit 2d30c45

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

client.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -490,10 +490,6 @@ func statusToError(status *sshfx.StatusPacket, okExpected bool) error {
490490

491491
case sshfx.StatusEOF:
492492
return io.EOF
493-
case sshfx.StatusNoSuchFile:
494-
return fs.ErrNotExist
495-
case sshfx.StatusPermissionDenied:
496-
return fs.ErrPermission
497493
}
498494

499495
return status

0 commit comments

Comments
 (0)