Merge pull request #6072 from reitermarkus/exception-inception
Fix exception inception.
This commit is contained in:
commit
6c7ee10d0a
@ -174,7 +174,7 @@ module Cask
|
|||||||
end
|
end
|
||||||
|
|
||||||
def to_s
|
def to_s
|
||||||
s = "Failed to quarantine #{path}."
|
s = +"Failed to quarantine #{path}."
|
||||||
|
|
||||||
unless reason.empty?
|
unless reason.empty?
|
||||||
s << " Here's the reason:\n"
|
s << " Here's the reason:\n"
|
||||||
@ -188,7 +188,7 @@ module Cask
|
|||||||
|
|
||||||
class CaskQuarantinePropagationError < CaskQuarantineError
|
class CaskQuarantinePropagationError < CaskQuarantineError
|
||||||
def to_s
|
def to_s
|
||||||
s = "Failed to quarantine one or more files within #{path}."
|
s = +"Failed to quarantine one or more files within #{path}."
|
||||||
|
|
||||||
unless reason.empty?
|
unless reason.empty?
|
||||||
s << " Here's the reason:\n"
|
s << " Here's the reason:\n"
|
||||||
@ -202,7 +202,7 @@ module Cask
|
|||||||
|
|
||||||
class CaskQuarantineReleaseError < CaskQuarantineError
|
class CaskQuarantineReleaseError < CaskQuarantineError
|
||||||
def to_s
|
def to_s
|
||||||
s = "Failed to release #{path} from quarantine."
|
s = +"Failed to release #{path} from quarantine."
|
||||||
|
|
||||||
unless reason.empty?
|
unless reason.empty?
|
||||||
s << " Here's the reason:\n"
|
s << " Here's the reason:\n"
|
||||||
|
|||||||
@ -82,7 +82,7 @@ module Homebrew
|
|||||||
|
|
||||||
def brief_build_info(f)
|
def brief_build_info(f)
|
||||||
build_time_str = f.logs.ctime.strftime("%Y-%m-%d %H:%M:%S")
|
build_time_str = f.logs.ctime.strftime("%Y-%m-%d %H:%M:%S")
|
||||||
s = <<~EOS
|
s = +<<~EOS
|
||||||
Homebrew build logs for #{f.full_name} on #{OS_VERSION}
|
Homebrew build logs for #{f.full_name} on #{OS_VERSION}
|
||||||
EOS
|
EOS
|
||||||
if args.with_hostname?
|
if args.with_hostname?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user