Handles errors returned from search service.

Closes #109
Merge pull request #118 from agrc/error-check

Handles errors returned from search service.