Skip to content

Debug mode when the command fails #73

@gerases

Description

@gerases

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions