Skip to content

Commit

Permalink
fix: log error if err != nil (close #1651)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Sep 12, 2022
1 parent 6aedd0f commit 78e34f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/bootstrap/aria2.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}()
}

0 comments on commit 78e34f0

Please sign in to comment.