From 77e5ab9c5bd454f762d692eb8207ff13e529933f Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Fri, 28 Oct 2016 18:37:19 -0400 Subject: [PATCH] bittorrent: invalid infohash -> ClientError Fixes #250 --- bittorrent/params.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bittorrent/params.go b/bittorrent/params.go index 9cb33c6..469a3b5 100644 --- a/bittorrent/params.go +++ b/bittorrent/params.go @@ -37,7 +37,7 @@ var ErrKeyNotFound = errors.New("query: value for the provided key does not exis // ErrInvalidInfohash is returned when parsing a query encounters an infohash // with invalid length. -var ErrInvalidInfohash = errors.New("query: invalid infohash") +var ErrInvalidInfohash = ClientError("provided invalid infohash") // QueryParams parses a URL Query and implements the Params interface with some // additional helpers.