From 3d92cca0626dc2a3b98daeca9886885443a5ba92 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 28 Feb 2024 15:46:41 +1100 Subject: [PATCH] cmd/torrent: Remove stutter in error message --- cmd/torrent/download.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/torrent/download.go b/cmd/torrent/download.go index cb3ca583..065ea2ad 100644 --- a/cmd/torrent/download.go +++ b/cmd/torrent/download.go @@ -112,7 +112,7 @@ func addTorrents(ctx context.Context, client *torrent.Client, flags downloadFlag } t, err := client.AddTorrent(metaInfo) if err != nil { - return nil, fmt.Errorf("adding torrent: %w", err) + return nil, err } return t, nil } else if strings.HasPrefix(arg, "infohash:") { -- 2.48.1