Merge pull request #251 from jzelinskie/invalidinfohash
bittorrent: invalid infohash -> ClientError
This commit is contained in:
commit
19ae824b42
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue