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

Refactors errors package #311

Closed
wants to merge 1 commit into from
Closed

Refactors errors package #311

wants to merge 1 commit into from

Conversation

rjfonseca
Copy link
Member

The errors.E() function receives a slice of any arguments. This makes this functions very easy to break or cause confusion because each argument must be type casted and processed.

Refactors errors.E() to receive the error as the first argument and a list of options. The Code, Op, Severity and KeyValue are now an ErrorOption.

@rjfonseca rjfonseca requested a review from eric-reis as a code owner May 29, 2024 19:04
The errors.E() function receives a slice of any arguments. This makes this
functions very easy to break or cause confusion because each argument
must be type casted and processed.

Refactors errors.E() to receive the error as the first argument and a
list of options. The Code, Op, Severity and KeyValue are now an
ErrorOption.
Copy link

sonarcloud bot commented May 29, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

This PR will be automatically closed due to lack of activity. If you think this is a mistake, please reopen the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants