Skip to content

Conversation

@mihaelabalutoiu
Copy link
Member

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 mbalutoiu@cloudbasesolutions.com

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 <mbalutoiu@cloudbasesolutions.com>
@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