TRIVIAL: slightly better information when logging download error
This commit is contained in:
parent
cf7a3e74ee
commit
51750f7d0e
|
@ -7,7 +7,7 @@ class FileHelper
|
|||
end
|
||||
|
||||
def self.download(url, max_file_size, tmp_file_name)
|
||||
raise Discourse::InvalidParameters unless url =~ /^https?:\/\//
|
||||
raise Discourse::InvalidParameters.new(:url) unless url =~ /^https?:\/\//
|
||||
|
||||
uri = URI.parse(url)
|
||||
extension = File.extname(uri.path)
|
||||
|
|
Loading…
Reference in New Issue