made elasticsearch error messages more readable