fix errorInfo type