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

Fixed error wrap #42

Merged
merged 1 commit into from
Oct 18, 2022
Merged

Conversation

mihaelabalutoiu
Copy link
Contributor

The error is not wrapped correctly, because instead of using q.Error, it uses err, which is defined elsewhere.

Also, the UpdateRepository and CreateRepositoryPool functions will never fail on update/create repo, because it returns a nil error, instead of wrap error.

Signed-off-by: Mihaela Balutoiu [email protected]

The error is not wrapped correctly, because instead of using `q.Error`,
it uses `err`, which is defined elsewhere.

Also, the `UpdateRepository` and `CreateRepositoryPool` functions will
never fail on update/create repo, because it returns a nil error, instead
of wrap error.

Signed-off-by: Mihaela Balutoiu <[email protected]>
@gabriel-samfira gabriel-samfira merged commit 19e31cc into cloudbase:main Oct 18, 2022
@mihaelabalutoiu mihaelabalutoiu deleted the fix-error-wrap branch October 18, 2022 08:10
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