more detailed update exception

This commit is contained in:
Christian Mehlmauer
2016-08-12 20:54:24 +02:00
parent 19b15b5327
commit 22d69a1bf9
3 changed files with 30 additions and 1 deletions

View File

@@ -31,3 +31,12 @@ class DownloadError < HttpError
"Unable to get #{failure_details}"
end
end
class ChecksumError < StandardError
attr_reader :file, :cloudflare_info
def initialize(file, cloudflare_info)
@file = file
@cloudflare_info = cloudflare_info
end
end