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

pull/1831/head
Noah Hsu 2022-09-12 17:01:06 +08:00
parent 6aedd0f425
commit 78e34f0d9f
1 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,8 @@ import (
func InitAria2() {
go func() {
_, 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)
}
}()
}