Exception: Autoshell::CommandError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/autoshell.rb

Overview

Exception thrown by autoshell methods when a command fails

sh = Autoshell.new
begin
  sh.run 'missing-command'
rescue Autoshell::CommandError => exc
  puts 'command failed!'
end