From 7b96fd008e332949b9d53ffe08e9de20dbff0e2d Mon Sep 17 00:00:00 2001 From: Shaun Jackman Date: Fri, 25 Aug 2017 12:35:03 -0700 Subject: [PATCH] safe_fork: Improve the error message --- Library/Homebrew/utils/fork.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils/fork.rb b/Library/Homebrew/utils/fork.rb index 92f5bf899b..2f2a403e2a 100644 --- a/Library/Homebrew/utils/fork.rb +++ b/Library/Homebrew/utils/fork.rb @@ -38,7 +38,7 @@ module Utils Process.wait(pid) unless socket.nil? raise Marshal.load(data) unless data.nil? || data.empty? raise Interrupt if $CHILD_STATUS.exitstatus == 130 - raise "Suspicious failure" unless $CHILD_STATUS.success? + raise "Forked child process failed: #{$CHILD_STATUS}" unless $CHILD_STATUS.success? end end end