Make sure GCMole pukes when Clang invocation fails.

R=jkummerow@chromium.org

Review URL: https://codereview.chromium.org/16878003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15187 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 07596dd7
......@@ -117,7 +117,8 @@ function InvokeClangPluginForEachFile(filenames, cfg, func)
if FLAGS.verbose then print('popen ', action) end
local pipe = io.popen(action)
func(filename, pipe:lines())
pipe:close()
local success = pipe:close()
if not success then error("Failed to run: " .. action) end
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment