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(azure): Fix error handling in the azure crawler #144

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

lvalerom
Copy link
Contributor

@lvalerom lvalerom commented Dec 9, 2024

The results of redirectToJSONURL were not handled properly because errors.Wrapf will return nil if the error that is being wrapped is nil. In order to properly handle the case where err is nil but jsonURL is empty we need to split the if.

Copy link

@jschnath jschnath left a comment

Choose a reason for hiding this comment

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

LGTM

@lvalerom lvalerom merged commit 158d45a into main Dec 9, 2024
4 of 5 checks passed
@lvalerom lvalerom deleted the lvm/fix-error-handling branch December 9, 2024 14:00
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