lib/awestruct/cli/auto.rb in awestruct-0.4.3 vs lib/awestruct/cli/auto.rb in awestruct-0.4.4

- old
+ new

@@ -18,10 +18,15 @@ listener.ignore( %r(^#{File.basename( @config.output_dir )}) ) listener.change do |modified, added, removed| modified.each do |path| engine = ::Awestruct::Engine.instance unless ( path =~ %r(#{File.basename( engine.config.output_dir) }) || path =~ /.awestruct/ ) - engine.generate_page_by_output_path( path ) + begin + engine.generate_page_by_output_path( path ) + rescue => e + puts e + puts e.backtrace + end end end end listener.start(false) end