Updating a few error messages.

I have updated a few error message in the hope that it will help the users to understand what went wrong.

@emanuelez @cmelchior @bmunkholm