This commit is contained in:
Simon Ding
2024-08-11 20:54:12 +08:00
parent 5b70badb50
commit 620f085ca5
2 changed files with 3 additions and 3 deletions

View File

@@ -142,7 +142,7 @@ func Search(indexer *db.TorznabInfo, keyWord string) ([]Result, error) {
var res Response
err = xml.Unmarshal(data, &res)
if err != nil {
return nil, errors.Wrap(err, "json unmarshal")
return nil, errors.Wrapf(err, "xml unmarshal data: %v", string(data))
}
cacheRes = res
cc.Set(key, cacheRes)