From 85c3b55e2b77975370dcd0c07b953d281a9c8d07 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sun, 28 Apr 2019 15:16:47 +0200 Subject: [PATCH] Fix exception in exception. --- Library/Homebrew/cask/exceptions.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/cask/exceptions.rb b/Library/Homebrew/cask/exceptions.rb index 401203f8ae..13e04a008a 100644 --- a/Library/Homebrew/cask/exceptions.rb +++ b/Library/Homebrew/cask/exceptions.rb @@ -174,7 +174,7 @@ module Cask end def to_s - s = "Failed to quarantine #{path}." + s = +"Failed to quarantine #{path}." unless reason.empty? s << " Here's the reason:\n" @@ -188,7 +188,7 @@ module Cask class CaskQuarantinePropagationError < CaskQuarantineError 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? s << " Here's the reason:\n" @@ -202,7 +202,7 @@ module Cask class CaskQuarantineReleaseError < CaskQuarantineError def to_s - s = "Failed to release #{path} from quarantine." + s = +"Failed to release #{path} from quarantine." unless reason.empty? s << " Here's the reason:\n"