Exception: Cask::CaskQuarantineReleaseError

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



204
205
206
207
208
209
210
211
212
213
214
# File 'brew/Library/Homebrew/cask/exceptions.rb', line 204

def to_s
  s = +"Failed to release #{path} from quarantine."

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

  s.freeze
end