From 257e245944279dd59186b213c0b33aa0ac4b2f23 Mon Sep 17 00:00:00 2001 From: Andrew Janke Date: Tue, 25 Dec 2018 17:19:23 -0500 Subject: [PATCH] Fix bogus comparison operation that was breaking error handling --- Library/Homebrew/build.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb index e2f64013a9..fd2023386d 100644 --- a/Library/Homebrew/build.rb +++ b/Library/Homebrew/build.rb @@ -202,7 +202,7 @@ rescue Exception => e # rubocop:disable Lint/RescueException error_hash["cmd"] = e.cmd error_hash["args"] = e.args error_hash["env"] = e.env - elsif error_hash["json_class"] = "ErrorDuringExecution" + elsif error_hash["json_class"] == "ErrorDuringExecution" error_hash["cmd"] = e.cmd error_hash["status"] = e.status.exitstatus error_hash["output"] = e.output