fix: log error if err != nil (close #1651)

This commit is contained in:
Noah Hsu 2022-09-12 17:01:06 +08:00
parent 6aedd0f425
commit 78e34f0d9f

View File

@ -8,6 +8,8 @@ import (
func InitAria2() { func InitAria2() {
go func() { go func() {
_, err := aria2.InitClient(2) _, err := aria2.InitClient(2)
utils.Log.Errorf("failed to init aria2 client: %+v", err) if err != nil {
utils.Log.Errorf("failed to init aria2 client: %+v", err)
}
}() }()
} }