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

improve TransloaditError #210

Merged
merged 1 commit into from
Dec 12, 2024
Merged

improve TransloaditError #210

merged 1 commit into from
Dec 12, 2024

Conversation

mifi
Copy link
Collaborator

@mifi mifi commented Dec 11, 2024

  • add cause to TranslodaitError which is the response body
  • deprecate transloaditErrorCode (use cause.error)
  • deprecate response?.body (use cause)
  • deprecate assemblyId (use cause.assembly_id)
  • make sure errors thrown when status 200 but with body.error are also TransloaditError

- add `cause` to TranslodaitError which is the response body
- deprecate `transloaditErrorCode` (use `cause.error`)
- deprecate `response?.body` (use `cause`)
- deprecate `assemblyId` (use `cause.assembly_id`)
- make sure errors thrown when status 200 but with `body.error` are also TransloaditError
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.72%. Comparing base (c1f24bd) to head (172ba1f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #210      +/-   ##
==========================================
+ Coverage   68.75%   69.72%   +0.97%     
==========================================
  Files           6        6              
  Lines         624      644      +20     
  Branches      123      129       +6     
==========================================
+ Hits          429      449      +20     
  Misses        195      195              
Flag Coverage Δ
unittests 69.72% <100.00%> (+0.97%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kvz kvz requested a review from remcohaszing December 11, 2024 17:04
Copy link
Member

@kvz kvz left a comment

Choose a reason for hiding this comment

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

💪

@kvz kvz merged commit 0e0e9e1 into main Dec 12, 2024
9 checks passed
@kvz kvz deleted the improve-errors branch December 12, 2024 10:22
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.

4 participants