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,6 +322,9 @@ protected
raise raise
end end
end end
rescue SystemCallError
# usually because exec could not be find the command that was requested
raise
rescue rescue
raise BuildError.new(cmd, args, $?) raise BuildError.new(cmd, args, $?)
end end