Merge pull request #251 from jzelinskie/invalidinfohash

bittorrent: invalid infohash -> ClientError
This commit is contained in:
Jimmy Zelinskie 2016-10-29 10:54:31 -04:00 committed by GitHub
commit 19ae824b42

View file

@ -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 // ErrInvalidInfohash is returned when parsing a query encounters an infohash
// with invalid length. // 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 // QueryParams parses a URL Query and implements the Params interface with some
// additional helpers. // additional helpers.