lib/net/sftp/errors.rb
# Override the default message format, to include the code and
# description.
Override the default message format, to include the code and
description.
Override the default message format to include the code and description .
def message
      m = super.dup
      m << " #{text}" if text
      m << " (#{code}, #{description.inspect})"
    end
def message m = super . dup m << " #{text}" if text m << " (#{code}, #{description.inspect})" end
Override the default message format, to include the code and
description.
Override the default message format to include the code and description .