aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2009-12-09 15:15:19 +0000
committerMax Howell2009-12-12 16:23:04 +0000
commit3d38b0d2f2feb2c2a8fd183cac02a21cd4d0d097 (patch)
tree23b930242bab83e25e59343eaea9956ac44525e8
parent182697a131c035ac5324ff4a7df47e272b8e9933 (diff)
downloadhomebrew-3d38b0d2f2feb2c2a8fd183cac02a21cd4d0d097.tar.bz2
Better error message if exec fails
-rw-r--r--Library/Homebrew/formula.rb5
1 files changed, 4 insertions, 1 deletions
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