revise error info for consistency