Skip to content

Commit

Permalink
add: error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
melbahja committed Aug 15, 2020
1 parent 6eefa9f commit c58c7a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions got.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import (
// DefaulUserAgent is the default Got user agent to send http requests.
const DefaulUserAgent = "Got/1.0"

// ErrDownloadAborted - When download is aborted by the OS before it is completed, ErrDownloadAborted will be triggered
var ErrDownloadAborted = errors.New("Operation aborted")

// NewRequest returns a new http.Request and error if any.
func NewRequest(ctx context.Context, method, URL string) (req *http.Request, err error) {

Expand Down

0 comments on commit c58c7a9

Please sign in to comment.