dimagi/commcare-hq — pull request #3610 by dannyroberts (2014-06-09 19:06:08+00:00)
Title: make es_query raise an exception if there is an error

moving this pretty core functionality into es_query from es_wrapper

I did a good faith check at usages of es_query and none of them
check for an error field; so this just makes the exception that is raised
much more useful

Instead of `KeyError 'hits'`, it'll give you the actual es error