Show more descriptive error messages during query related errors.

Fixes #2 . Let me know if there's anything you want me to change.