Add error index to netshareadd rpc.