lib/linner/command.rb in linner-0.11.0 vs lib/linner/command.rb in linner-0.11.1

- old
+ new

@@ -61,10 +61,12 @@ Linner.strict = true if options[:strict] clean env.merge_with_environment(options[:environment]) Bundler.new(env).perform perform + rescue + Notifier.error $! end desc "watch", "watch assets" method_option :environment, type: :string, @@ -97,16 +99,10 @@ def env Linner.env end def perform - begin - Notifier.profile do - Linner.perform - end - rescue - Notifier.error $! - end + Notifier.profile { Linner.perform } end def watch_for_perform Listen.to env.watched_paths do |modified, added, removed| Linner.cache.expire_by(modified + added + removed)