mirror of
https://github.com/discourse/discourse.git
synced 2025-03-21 17:55:31 +08:00
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…
x
Reference in New Issue
Block a user