Exception: Cask::CaskQuarantinePropagationError

Inherits:
CaskQuarantineError show all
Defined in:
brew/Library/Homebrew/cask/exceptions.rb

Instance Attribute Summary

Attributes inherited from CaskQuarantineError

#path, #reason

Instance Method Summary collapse

Methods inherited from CaskQuarantineError

#initialize

Constructor Details

This class inherits a constructor from Cask::CaskQuarantineError

Instance Method Details

#to_sObject



190
191
192
193
194
195
196
197
198
199
200
# File 'brew/Library/Homebrew/cask/exceptions.rb', line 190

def to_s
  s = +"Failed to quarantine one or more files within #{path}."

  unless reason.empty?
    s << " Here's the reason:\n"
    s << Formatter.error(reason)
    s << "\n" unless reason.end_with?("\n")
  end

  s.freeze
end