Better error messages
This commit is contained in:
parent
ca5b2091e5
commit
3288141b74
|
@ -4,7 +4,7 @@ module Jekyll
|
|||
include ResponsiveImage::Utils
|
||||
|
||||
def process(image_path, config)
|
||||
raise SyntaxError.new('Invalid image path specified') unless File.exists?(image_path.to_s)
|
||||
raise SyntaxError.new("Invalid image path specified: #{image_path}") unless File.exists?(image_path.to_s)
|
||||
|
||||
resize_handler = ResizeHandler.new
|
||||
img = Magick::Image::read(image_path).first
|
||||
|
|
Loading…
Reference in New Issue