diff options
author | matej.risek <matej.risek@hashicorp.com> | 2023-07-12 14:40:09 +0200 |
---|---|---|
committer | matej.risek <matej.risek@hashicorp.com> | 2023-09-05 17:09:59 +0200 |
commit | 5ad72db3bd60351da9ab42727952654e3ad5bcb2 (patch) | |
tree | 35179f19c30d4cc31c8c9a0d5957e66c11e98dd5 /plumbing/transport/http/upload_pack.go | |
parent | cd3a21c619126288123c32f4a714181f9e1a68f8 (diff) | |
download | go-git-5ad72db3bd60351da9ab42727952654e3ad5bcb2.tar.gz |
plumbing: Do not swallow http message coming from VCS providers.
For diagnostics reasons we want to surface error messages coming from VCS providers.
That's why we introduce the reason field to Err struct in http package.
This field can be used by an end user of the library in order to better understand failures.
Diffstat (limited to 'plumbing/transport/http/upload_pack.go')
-rw-r--r-- | plumbing/transport/http/upload_pack.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/plumbing/transport/http/upload_pack.go b/plumbing/transport/http/upload_pack.go index 4f85145..3432618 100644 --- a/plumbing/transport/http/upload_pack.go +++ b/plumbing/transport/http/upload_pack.go @@ -100,7 +100,6 @@ func (s *upSession) doRequest( } if err := NewErr(res); err != nil { - _ = res.Body.Close() return nil, err } |