returning elasticsearch errors

Hello :) 

I ran into an issue related to a bad formed query, and I could not see the error sent by elasticsearch. This patch allows the caller to get the actual error sent by elasticsearch, and it seems to be more useful this way.

Thoughts?

Cheers!