From 3d38b0d2f2feb2c2a8fd183cac02a21cd4d0d097 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Wed, 9 Dec 2009 15:15:19 +0000 Subject: Better error message if exec fails --- Library/Homebrew/formula.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index d11aeefd3..8c4614a3d 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 -- cgit v1.2.3