mirror of
https://github.com/usetrmnl/terminus.git
synced 2026-08-13 14:29:27 -07:00
Fixed downloader to convert response failure to a string before logging
This was causing crashes with the logger so we make the conversion to a string explicit now. Milestone: patch
This commit is contained in:
@@ -24,7 +24,7 @@ module Terminus
|
||||
def log result, uri
|
||||
case result
|
||||
in Success then logger.info { "Downloaded: #{uri}." }
|
||||
in Failure(HTTP::Response => response) then log_error response.body
|
||||
in Failure(HTTP::Response => response) then log_error response.body.to_s
|
||||
in Failure(String => message) then log_error message
|
||||
else log_error "Unable to download: #{uri.inspect}."
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user