I'm not sure if this is intended but I think the debug mode should print out the usual output even if the command fails. I would expect the example below to print what was being executed that caused the exception.
sh do
ls('-z', _debug: true)
rescue RubyShell::CommandError => e
puts e
end
I'm not sure if this is intended but I think the debug mode should print out the usual output even if the command fails. I would expect the example below to print what was being executed that caused the exception.