Elasticsearch debug status

The err is missing a check.