Skip to content

Unwrap JSON messages in ResponseStatusExceptionFilter#1180

Merged
KostyaSha merged 3 commits intodocker-java:masterfrom
sschuberth:json-message
Jun 25, 2019
Merged

Unwrap JSON messages in ResponseStatusExceptionFilter#1180
KostyaSha merged 3 commits intodocker-java:masterfrom
sschuberth:json-message

Conversation

@sschuberth
Copy link
Copy Markdown
Contributor

@sschuberth sschuberth commented Mar 20, 2019

Please have a look at the individual commit messages for the details.


This change is Reviewable

IOException is never thrown in getBodyAsMessage().
@codecov-io
Copy link
Copy Markdown

codecov-io commented Mar 20, 2019

Codecov Report

Merging #1180 into master will decrease coverage by 0.01%.
The diff coverage is 28.57%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1180      +/-   ##
==========================================
- Coverage   58.59%   58.57%   -0.02%     
==========================================
  Files         455      455              
  Lines        8815     8821       +6     
  Branches      532      534       +2     
==========================================
+ Hits         5165     5167       +2     
- Misses       3371     3374       +3     
- Partials      279      280       +1
Impacted Files Coverage Δ
...va/jaxrs/filter/ResponseStatusExceptionFilter.java 50% <28.57%> (-3.85%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update de0c1d4...2769032. Read the comment docs.

For JSON messages like

{"message":"Cannot locate specified Dockerfile: /path/to/Dockerfile"}

unwrap the message to make the exception message read nicer.
@KostyaSha KostyaSha added this to the 3.1.3 milestone Jun 25, 2019
@KostyaSha KostyaSha merged commit 9bdabc1 into docker-java:master Jun 25, 2019
@sschuberth sschuberth deleted the json-message branch June 26, 2019 07:37
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.

3 participants