summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-07-23 00:09:01 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-07-23 00:09:01 +0000
commit5c55a3aecc2776f453ec1e36769640e85d326be4 (patch)
tree020a5be0bfc0e66bdeb2a0fa4a655bf14845b28f /lib
parent807479760c0257629a21d41aa4d8ad8e81b14f56 (diff)
downloadgitlab-ce-5c55a3aecc2776f453ec1e36769640e85d326be4.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/http_io.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/http_io.rb b/lib/gitlab/http_io.rb
index bd3ac139168..25b86fbf22f 100644
--- a/lib/gitlab/http_io.rb
+++ b/lib/gitlab/http_io.rb
@@ -153,7 +153,7 @@ module Gitlab
http.request(request)
end
- raise FailedToGetChunkError unless response.code == '200' || response.code == '206'
+ raise FailedToGetChunkError, "Unexpected response code: #{response.code}" unless response.code == '200' || response.code == '206'
@chunk = response.body.force_encoding(Encoding::BINARY)
@chunk_range = response.content_range