From f77e2894c225494755799544eb16116dec8415b7 Mon Sep 17 00:00:00 2001 From: Rene Saarsoo Date: Mon, 17 Oct 2011 13:21:16 +0300 Subject: [PATCH] Unify format of image warnings with others. --- lib/jsduck/images.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jsduck/images.rb b/lib/jsduck/images.rb index cd194015..4e02e81e 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 -- GitLab