function TestSession.gatherErrors(z)local w=z.results w.errors={}w:visitAllNodes(function(z)if#z.errors>0 then for l,b in ipairs(z.errors)do table.insert(w.errors,{message=b;phrase=z.planNode.phrase})end end end)end
--[[
	Gathers all of the errors reported by tests and puts them at the top level
	of the TestResults object.
]]
function TestSession:gatherErrors()
	local results = self.results

	results.errors = {}

	results:visitAllNodes(function(node)
		if #node.errors > 0 then
			for _, message in ipairs(node.errors) do
				table.insert(results.errors, {
					message = message,
					phrase = node.planNode.phrase,
				})
			end
		end
	end)
end
