Skip to content

Propagate JSON unmarshal errors#8

Merged
creasty merged 4 commits into
masterfrom
json_error
Apr 11, 2018
Merged

Propagate JSON unmarshal errors#8
creasty merged 4 commits into
masterfrom
json_error

Conversation

@creasty

@creasty creasty commented Apr 11, 2018

Copy link
Copy Markdown
Owner

Why

To fix #7

@codecov-io

codecov-io commented Apr 11, 2018

Copy link
Copy Markdown

Codecov Report

Merging #8 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master     #8   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           2      2           
  Lines         105    111    +6     
=====================================
+ Hits          105    111    +6
Impacted Files Coverage Δ
defaults.go 100% <100%> (ø) ⬆️

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 046b42c...b518268. Read the comment docs.

Comment thread defaults.go
setField(field.Elem(), defaultVal)
callSetter(field.Interface())
default:
case reflect.Struct:

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Actually, this was a bug. Luckily I've found it by the changes.

@creasty creasty merged commit a7e48e2 into master Apr 11, 2018
@creasty creasty deleted the json_error branch April 11, 2018 12:00
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.

no errors if default value doesn't parse

2 participants