Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

fix panic when file/dir is deleted #2

Merged
merged 1 commit into from
Aug 18, 2021

Conversation

2shortplanks
Copy link

sometimes when a file/dir which is being watched is
deleted a panic will occur. This appears to be because
the is an assumption that if an error returns true for
IsNotExist() that it should be castable to os.PathError,
but this evidently is not always the case, causing a panic.

sometimes when a file/dir which is being watched is
deleted a panic will occur. This appears to be because
the is an assumption that if an error returns true for
`IsNotExist()` that it should be castable to `os.PathError`,
but this evidently is not always the case, causing a panic.
@2shortplanks 2shortplanks merged commit 64eaac1 into circleci:master Aug 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants