-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Cleanup of error response generation #1030
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1030 +/- ##
==========================================
+ Coverage 38.88% 38.95% +0.07%
==========================================
Files 58 58
Lines 3991 3958 -33
Branches 2204 2181 -23
==========================================
- Hits 1552 1542 -10
+ Misses 1090 1086 -4
+ Partials 1349 1330 -19 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just two small changes but LM(*)GTM (*mostly)
b4fa17d
to
9c174e4
Compare
It makes little sense to pass the verbosity control to the `Response` constructor if it is used only in `Response::send()`.
It turned out that ContentResponse::m_root is no longer used. At this point, the root parameter is dropped only from the 3-ary variant of ContentResponse::build(), so that its all call sites are automatically discovered by the compiler (and updated manually). Including the other (4-ary) variant of ContentResponse::build() in this change might result in the semantic change of expressions like `ContentResponse::build(x, y, z)` and failure to update them.
9c174e4
to
5f27b4b
Compare
@mgautierfr Good to merge? |
This PR contains preparatory cleanup work before implementing translation of error pages (#1019).