Skip to content

Commit

Permalink
s/Issue/Error/ in error messages (#227)
Browse files Browse the repository at this point in the history
* Grammar fix and s/Issue/Error/ in error messages
  • Loading branch information
ppar authored and arnecls committed Mar 30, 2018
1 parent 6ed0d6b commit 98721cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions producer/elasticsearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ func (prod *ElasticSearch) getClient() *elastic.Client {
func (prod *ElasticSearch) indexExists(client *elastic.Client, indexName string) bool {
exists, err := client.IndexExists(indexName).Do(context.Background())
if err != nil {
prod.Logger.WithError(err).Error("Issue during checking index")
prod.Logger.WithError(err).Error("Error during index check")
return false
}
return exists
Expand Down Expand Up @@ -291,7 +291,7 @@ func (prod *ElasticSearch) createIndexIfRequired(indexName string, settings *ela

_, err := mapping.Do(context.Background())
if err != nil {
prod.Logger.WithError(err).Errorf("Issue creating mapping for type %s.%s", indexName, typeName)
prod.Logger.WithError(err).Errorf("Error creating mapping for type %s.%s", indexName, typeName)
}
}

Expand Down

0 comments on commit 98721cf

Please sign in to comment.