Skip to content

Commit 600abd1

Browse files
Ignore ERROR_NOT_FOUND error when removing mount
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
1 parent df7295d commit 600abd1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mount/mount_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func Unmount(mount string, flags int) error {
144144
}
145145

146146
if err := bindfilter.RemoveFileBinding(mount); err != nil {
147-
if errno, ok := errors.Unwrap(err).(syscall.Errno); ok && errno == windows.ERROR_INVALID_PARAMETER {
147+
if errno, ok := errors.Unwrap(err).(syscall.Errno); ok && errno == windows.ERROR_INVALID_PARAMETER || errno == windows.ERROR_NOT_FOUND {
148148
// not a mount point
149149
return nil
150150
}

0 commit comments

Comments
 (0)