lib/awestruct/cli/auto.rb in awestruct-0.5.4.rc vs lib/awestruct/cli/auto.rb in awestruct-0.5.4.rc2

- old
+ new

@@ -1,6 +1,7 @@ #require 'guard/awestruct' +require 'awestruct/util/exception_helper' require 'listen' module Awestruct module CLI @@ -37,16 +38,14 @@ generate_thread = Thread.new { begin engine.generate_page_by_output_path( path ) $LOG.info "Generating.... done!" if $LOG.info? rescue => e - $LOG.error e if $LOG.error? - $LOG.error e.backtrace.join("\n") if $LOG.error? + ExceptionHelper.log_building_error e, path end } rescue => e - $LOG.error e if $LOG.error? - $LOG.error e.backtrace.join("\n") if $LOG.error? + ExceptionHelper.log_building_error e, path end end end end listener.start(false)