mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Include response body when raising an error in FileHelper#download
.
This commit is contained in:
@ -48,7 +48,7 @@ class FileHelper
|
||||
# attempt error API compatibility
|
||||
io = FakeIO.new
|
||||
io.status = [response.code, ""]
|
||||
raise OpenURI::HTTPError.new("#{response.code} Error", io)
|
||||
raise OpenURI::HTTPError.new("#{response.code} Error: #{response.body}", io)
|
||||
else
|
||||
log(:error, "FinalDestination did not work for: #{url}") if verbose
|
||||
throw :done
|
||||
|
Reference in New Issue
Block a user