flatten errors before (possibly) writing them to io
0.2.2