diff --git a/lib/jsduck/images.rb b/lib/jsduck/images.rb index cd194015ed042ea5e056dc50dcdd32a779606a1c..4e02e81e08d4bd8794721891cb32f55d307e938e 100644 --- a/lib/jsduck/images.rb +++ b/lib/jsduck/images.rb @@ -35,7 +35,7 @@ module JsDuck def copy(output_dir) @images.each_key do |img| unless copy_img(img, output_dir) - Logger.instance.warn("Image #{img} not found") + Logger.instance.warn("Image not found.", img) end end report_unused @@ -62,7 +62,7 @@ module JsDuck def report_unused @paths.each_pair do |path, map| map.each_pair do |img, used| - Logger.instance.warn("Image #{img} not used") unless used + Logger.instance.warn("Image not used.", img) unless used end end end