Skip to content

Commit

Permalink
Add error handling for ftp.StatusFileUnavailable
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Hallgren <thomas@datawire.io>
  • Loading branch information
thallgren committed May 10, 2023
1 parent b1b6741 commit 70392c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/fs/ftp.go
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,8 @@ func (f *fuseImpl) errToFuseErr(err error) int {
return -fuse.EHOSTUNREACH
case ftp.StatusBadFileName:
return -fuse.EINVAL
case ftp.StatusFileUnavailable:
return -fuse.ENOENT
}
}
em := err.Error()
Expand Down

0 comments on commit 70392c0

Please sign in to comment.