lib/chef_metal/transport/ssh.rb in chef-metal-0.8 vs lib/chef_metal/transport/ssh.rb in chef-metal-0.8.1
- old
+ new
@@ -171,9 +171,10 @@
def error!
if exitstatus != 0
# TODO stdout/stderr is already printed at info/debug level. Let's not print it twice, it's a lot.
msg = "Error: command '#{command}' exited with code #{exitstatus}.\n"
+ raise msg
end
end
end
end
end