exif-read-tool: Skip unsupported undefined tags

for/master
Dustin Oprea 2020-03-21 18:53:14 -04:00
parent 1e1e1ed104
commit 640175a69f
1 changed files with 8 additions and 1 deletions

View File

@ -118,7 +118,14 @@ func main() {
}
value, err := ite.Value()
log.PanicIf(err)
if err != nil {
if log.Is(err, exifcommon.ErrUnhandledUndefinedTypedTag) == true {
fmt.Printf("WARNING: Non-standard undefined tag: [%s] (%04x)\n", ifdPath, tagId)
return nil
}
log.Panic(err)
}
valueString, err := ite.FormatFirst()
log.PanicIf(err)