add and pass ErrorInfo