From 4ce19ae2d727fd9b8ff8490c07bc45e2a191f514 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Wed, 9 Dec 2009 15:15:19 +0000 Subject: [PATCH] Better error message if exec fails --- Library/Homebrew/formula.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index d11aeefd37..8c4614a3dd 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -322,7 +322,10 @@ protected raise end end - rescue + rescue SystemCallError + # usually because exec could not be find the command that was requested + raise + rescue raise BuildError.new(cmd, args, $?) end