aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2009-12-09 15:15:19 +0000
committerMax Howell2009-12-12 16:23:04 +0000
commit4ce19ae2d727fd9b8ff8490c07bc45e2a191f514 (patch)
tree108df2a1e7cc2ed661ef65c3e1775b0088d78745 /Library
parenta9895432ce92fcb4cb3794805d2a82e409626493 (diff)
downloadbrew-4ce19ae2d727fd9b8ff8490c07bc45e2a191f514.tar.bz2
Better error message if exec fails
Diffstat (limited to 'Library')
-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