More info when recovering from panic

This commit is contained in:
Deluan 2021-09-20 18:16:22 -04:00
parent 76bd20e8ff
commit 86479a6d06
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
}()