Merge pull request #5444 from apjanke/fix-undefined-cmd-for-FormulaUnavailableError

Fix bogus comparison operation that was breaking error handling
This commit is contained in:
William Woodruff 2018-12-26 17:11:52 -05:00 committed by GitHub
commit 406272f007
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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