Improved the code to display the error to user
Merge pull request #4 from Kajakaran/master

Improved the code to display the error to user