Skip to content

Commit b9a9b1c

Browse files
authored
Merge pull request #106 from ThatsMrTalbot/patch-1
fix: wrap errors returned by JSON unmarshal
2 parents 56d6720 + 4c6913f commit b9a9b1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yaml.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func jsonUnmarshal(reader io.Reader, obj interface{}, opts ...JSONOpt) error {
9292
d = opt(d)
9393
}
9494
if err := d.Decode(&obj); err != nil {
95-
return fmt.Errorf("while decoding JSON: %v", err)
95+
return fmt.Errorf("while decoding JSON: %w", err)
9696
}
9797
return nil
9898
}

0 commit comments

Comments
 (0)