Error report optimize