lib/paraduct/runner.rb in paraduct-0.0.1.beta14 vs lib/paraduct/runner.rb in paraduct-0.0.1.beta15
- old
+ new
@@ -80,10 +80,10 @@
full_stdout << "#{line}\n"
end
rescue Errno::EIO
end
exit_status = PTY.check(pid)
- raise Paraduct::Errors::ProcessError.new(full_stdout, exit_status) unless exit_status.success?
+ raise Paraduct::Errors::ProcessError.new(full_stdout, exit_status) if exit_status && !exit_status.success?
end
full_stdout
end
end