diff --git a/novelupdates.go b/novelupdates.go index 0546feb..4641094 100644 --- a/novelupdates.go +++ b/novelupdates.go @@ -24,7 +24,7 @@ func (api *Api) GetWithCookie(ctx context.Context, url string) (*goquery.Documen data, err := curl.Output() if err != nil { - return nil, ErrCurlRequestFailed.New(err, url) + return nil, ErrCurlRequestFailed.Wrap(err, url) } r, err := gzip.NewReader(bytes.NewReader(data)) @@ -44,7 +44,7 @@ func (api *Api) Get(ctx context.Context, url string) (*goquery.Document, error) data, err := curl.Output() if err != nil { - return nil, ErrCurlRequestFailed.New(err, url) + return nil, ErrCurlRequestFailed.Wrap(err, url) } r, err := gzip.NewReader(bytes.NewReader(data))