diff --git a/xbrl.go b/xbrl.go index 91650b1..b41a692 100644 --- a/xbrl.go +++ b/xbrl.go @@ -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)