initial rev of using error information in formatting