Skip to content

Commit

Permalink
return error on DecodeElement error (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
antdjohns authored Jan 13, 2023
1 parent ed1eb04 commit a181bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbrl.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func NewProcessedXBRL(raw RawXBRL) XBRL {
func (x *XBRL) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
var raw RawXBRL
if err := d.DecodeElement(&raw, &start); err != nil {
return nil
return err
}

*x = NewProcessedXBRL(raw)
Expand Down

0 comments on commit a181bb7

Please sign in to comment.