[ issue 1216 ] Fixed by giving proper error message.