flatten partial result errors properly