lib/guard/jasmine/cli.rb in guard-jasmine-1.19.2 vs lib/guard/jasmine/cli.rb in guard-jasmine-2.0.0beta1

- old
+ new

@@ -215,25 +215,25 @@ catch(:task_has_failed) do ::Guard::Jasmine::Server.start(runner_options) unless runner_options[:server] == :none end if CLI.runner_available?(runner_options) - result = ::Guard::Jasmine::Runner.run(paths, runner_options) + result = ::Guard::Jasmine::Runner.new(runner_options).run(paths) ::Guard::Jasmine::Server.stop - - Process.exit result.first ? 0 : 1 + Process.exit result.empty? ? 0 : 1 else - ::Guard::Jasmine::Server.stop Process.exit 2 end else Process.exit 2 end rescue => e - ::Guard::UI.error e.message + ::Guard::UI.error "Something went wrong: #{e.message}" Process.exit 2 + ensure + ::Guard::Jasmine::Server.stop end desc 'version', 'Show the Guard::Jasmine version' map %w(-v --version) => :version