Skip to content

Commit

Permalink
More info when recovering from panic
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Sep 20, 2021
1 parent 76bd20e commit 86479a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scanner/metadata/taglib/taglib_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
func Read(filename string) (tags map[string][]string, err error) {
defer func() {
if r := recover(); r != nil {
log.Error("TagLib: recovered from panic", "error", r)
log.Error("TagLib: recovered from panic when reading tags", "file", filename, "error", r)
err = fmt.Errorf("TagLib: recovered from panic: %s", r)
}
}()
Expand Down

0 comments on commit 86479a6

Please sign in to comment.