Skip to content

Commit f4bcea6

Browse files
author
Alexander Félix
committed
bug: large structs returned early
1 parent a7c9d5c commit f4bcea6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

do.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ func Do(dst, src interface{}) error {
7171
if field.Type.Kind() == reflect.Struct {
7272
// Pass the address of the interface type to recursion so all supported values get set
7373
// in entire structure tree
74-
return Do(vDst.Elem().Field(i).Addr().Interface(), vSrc.Field(i).Interface())
74+
if err := Do(vDst.Elem().Field(i).Addr().Interface(), vSrc.Field(i).Interface()); err != nil {
75+
return err
76+
}
7577
}
7678

7779
// Skip kinds that are not supported

0 commit comments

Comments
 (0)