mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-12 05:38:04 +00:00
Fixed silently ignored error in xml decoder
This commit is contained in:
parent
fb148c305a
commit
3a1e2c7518
@ -200,7 +200,10 @@ func (dec *xmlDecoder) decodeXML(root *xmlNode) error {
|
||||
}
|
||||
|
||||
for {
|
||||
t, _ := xmlDec.Token()
|
||||
t, e := xmlDec.Token()
|
||||
if e != nil {
|
||||
return e
|
||||
}
|
||||
if t == nil {
|
||||
break
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user