mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 13:07:36 +03:00
More info when recovering from panic
This commit is contained in:
parent
76bd20e8ff
commit
86479a6d06
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ import (
|
||||||
func Read(filename string) (tags map[string][]string, err error) {
|
func Read(filename string) (tags map[string][]string, err error) {
|
||||||
defer func() {
|
defer func() {
|
||||||
if r := recover(); r != nil {
|
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)
|
err = fmt.Errorf("TagLib: recovered from panic: %s", r)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue