Permalink
Browse files

Raise exec errors in the parent

  • Loading branch information...
1 parent 84b2847 commit 56ba4f16bca78d540e499ce0b30e6d1815f4cf2c @gdb committed Jan 10, 2014
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/rubysh/subprocess.rb
View
@@ -149,6 +149,8 @@ def handle_exec_error
else
@exec_error = Rubysh::Error::BaseError.new("Invalid message received over the exec_status pipe: #{msg.inspect}")
end
+
+ raise @exec_error if @exec_error
end
end
end

0 comments on commit 56ba4f1

Please sign in to comment.