Index: abstract_adapter.rb =================================================================== --- abstract_adapter.rb (revision 1694) +++ abstract_adapter.rb (working copy) @@ -176,6 +176,9 @@ io.close_write block.call(io) if block_given? end + if $? && $?.exitstatus != 0 + raise Errno::ENOENT, "Exit status is #{$?.exitstatus}" + end rescue Errno::ENOENT => e msg = strip_credential(e.message) # The command failed, log it and re-raise