Add api for error_info