change to more user friendly error messages. reopen #1137
Merge pull request #1231 from hissy/better-message

change to more user friendly error messages. reopen #1137