Error report formatting