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

Add generic :custom_error case to humanize_error_code. #445

Merged

Conversation

kaiserdan
Copy link
Contributor

@kaiserdan kaiserdan commented Jul 2, 2024

Sometimes webservers respond with custom error codes which causes a FunctionClauseError in the humanize_error_code function. This change adds a generic case of the function that handles those cases.

Closes #437.

@whatyouhide
Copy link
Contributor

Nice! We will need a test for this, can you add one?

@kaiserdan
Copy link
Contributor Author

Does that look good, or is there a better way to test it?

@coveralls
Copy link

coveralls commented Jul 4, 2024

Pull Request Test Coverage Report for Build fe055988b3caca54bace426d4e8b54f5caf16c71-PR-445

Details

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 87.406%

Totals Coverage Status
Change from base Build 4f0c534fa5c0d7b6a4653aeb957bd99c38779560: 0.02%
Covered Lines: 1277
Relevant Lines: 1461

💛 - Coveralls

@whatyouhide whatyouhide merged commit 380212f into elixir-mint:main Jul 4, 2024
1 of 3 checks passed
@kaiserdan kaiserdan deleted the fix/humize_error_code_custom_error branch July 5, 2024 01:04
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.

Add humanize_error_code generic case
3 participants