Fixed silently ignored error in xml decoder

This commit is contained in:
Mike Farah 2022-03-27 11:42:07 +11:00
parent fb148c305a
commit 3a1e2c7518

View File

@ -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
}