Adding api to get latest partition date for cube

Message should say cubename passed is not basecube. Also put the name passed in message