Skip to content

Commit

Permalink
Change style of how args passed to raise
Browse files Browse the repository at this point in the history
  • Loading branch information
krauselukas committed Feb 13, 2018
1 parent 33a8976 commit b50d31a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/images_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def get_version(url, regex)
matches[1]
rescue OpenURI::HTTPError, RuntimeError => e
filename = File.basename(URI.parse(abs_url).path)
raise MetadataError.new "Could not get version of #{filename}: #{e}"
raise MetadataError, "Could not get version of #{filename}: #{e}"
end
end
end
Expand Down

0 comments on commit b50d31a

Please sign in to comment.