lib/octopolo/cli.rb in octopolo-0.3.2 vs lib/octopolo/cli.rb in octopolo-0.3.3

- old
+ new

@@ -24,9 +24,10 @@ # display the command say command if say_command # and then perform it if Open3.respond_to?(:capture3) output, error, status = Open3.capture3(command) + raise "exit_status=#{status.exitstatus}; stderr=#{error}" unless status.success? else # Only necessary as long as we use 1.8.7, which doesn't have Open3.capture3 output = `#{command}` end