aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShaun Jackman2017-08-25 12:35:03 -0700
committerShaun Jackman2017-08-25 12:43:07 -0700
commit7b96fd008e332949b9d53ffe08e9de20dbff0e2d (patch)
tree7ef7ce778fe5e816b8761cfe8d29304a96277c27
parent6d393decfe8099cb049c0ee62c6dc5877e54c0d7 (diff)
downloadbrew-7b96fd008e332949b9d53ffe08e9de20dbff0e2d.tar.bz2
safe_fork: Improve the error message
-rw-r--r--Library/Homebrew/utils/fork.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils/fork.rb b/Library/Homebrew/utils/fork.rb
index 92f5bf899..2f2a403e2 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