provide better error messaging - fixes #286

Are there other errors we should catch / any better ideas for wording the error message?