The rpc_createerr global variable is set when any RPC client creation routine fails. Use clnt_pcreateerror() to print the message.
Syntax
#include <rpc\rpc.h> struct rpc_createerr rpc_createerr;