Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: handle filewalker errors #107

Merged
merged 2 commits into from
Mar 22, 2024
Merged

fix: handle filewalker errors #107

merged 2 commits into from
Mar 22, 2024

Conversation

trym-b
Copy link
Contributor

@trym-b trym-b commented Mar 22, 2024

Best reviewed commit by commit

# Motivation

Instead of relying on `panic` to handle errors, or
even worse, ignoring the errors altogether, we
should handle errors in a more controlled way.

# Changes

This commit adds initial error handling to
`filwalker.New`. Future commits will expand upon
this error handling.
Similar to previous commit, this commit improves
error handling for the function
`resolveFilesystem`.
@trym-b trym-b force-pushed the fix/handle-file-walker-errors branch from e7eecd3 to 9fd1946 Compare March 22, 2024 12:15
Copy link

@andrbo andrbo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@trym-b trym-b merged commit 6786312 into main Mar 22, 2024
7 checks passed
@trym-b trym-b deleted the fix/handle-file-walker-errors branch March 22, 2024 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants