lib/awestruct/extensions/relative.rb in awestruct-0.5.4.rc vs lib/awestruct/extensions/relative.rb in awestruct-0.5.4.rc2

- old
+ new

@@ -1,5 +1,6 @@ +require 'awestruct/util/exception_helper' require 'pathname' module Awestruct module Extensions module Relative @@ -12,11 +13,10 @@ else result = Pathname.new(href).relative_path_from(Pathname.new(File.dirname(p.output_path))).to_s end result rescue Exception => e - $LOG.error "#{e}" if $LOG.error? - $LOG.error "#{e.backtrace.join("\n")}" if $LOG.error? + ExceptionHelper.log_building_error e, p.relative_source_path end end end end