Exception: Tomo::SSH::UnknownError

Inherits:
Error
  • Object
show all
Defined in:
lib/tomo/ssh/unknown_error.rb

Instance Attribute Summary

Attributes inherited from Error

#host

Instance Method Summary collapse

Methods inherited from Error

raise_with

Methods included from Colors

enabled?

Instance Method Details

#to_consoleObject



6
7
8
9
10
11
12
# File 'lib/tomo/ssh/unknown_error.rb', line 6

def to_console
  msg = <<~ERROR
    An unknown error occurred trying to SSH to #{yellow(host)}.
  ERROR

  [msg, super].join("\n")
end