v1/value_context.go: Bugfix for incorrectly handled ErrUnhandledUnknownTypedTag error

for/master
Dustin Oprea 2020-01-02 07:04:22 -05:00
parent 254a6b902a
commit 74567945ac
1 changed files with 7 additions and 1 deletions

View File

@ -351,7 +351,13 @@ func (vc *ValueContext) Undefined() (value interface{}, err error) {
}()
value, err = UndefinedValue(vc.ifdPath, vc.tagId, vc, vc.byteOrder)
log.PanicIf(err)
if err != nil {
if err == ErrUnhandledUnknownTypedTag {
return nil, err
}
log.Panic(err)
}
return value, nil
}