Better error message if exec fails

This commit is contained in:
Max Howell 2009-12-09 15:15:19 +00:00
parent a9895432ce
commit 4ce19ae2d7

View File

@ -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