From 51b149b8ee816b383ccdb2721ed37c3a11b06278 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 21 Jan 2021 08:30:36 +0000 Subject: [PATCH] exceptions: more handling of nil status. This was occurring on ARM CI. --- Library/Homebrew/exceptions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index 6f2f332b8b9b8..2ae9494b99c1e 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -589,7 +589,7 @@ def initialize(cmd, status:, output: nil, secrets: []) reason = if exitstatus "exited with #{exitstatus}" - elsif (uncaught_signal = status.termsig) + elsif (uncaught_signal = status&.termsig) "was terminated by uncaught signal #{Signal.signame(uncaught_signal)}" else raise ArgumentError, "Status neither has `exitstatus` nor `termsig`."