Skip to content

Commit

Permalink
Include the name of the index in the error message when the generator
Browse files Browse the repository at this point in the history
can't handle an index

Signed-off-by: Thomas Whiteway <[email protected]>
  • Loading branch information
Thomas Whiteway committed Jan 16, 2019
1 parent 43f7ba1 commit fe29860
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ func generateConfigModule(cfg *ModuleConfig, node *Node, nameToNode map[string]*
}
index.Type, ok = metricType(indexNode.Type)
if !ok {
log.Warnf("Error, can't handle index type %s for node %s", indexNode.Type, n.Label)
log.Warnf("Error, can't handle index type %s for index %s on node %s", indexNode.Type, i, n.Label)
return
}
index.FixedSize = indexNode.FixedSize
Expand Down

0 comments on commit fe29860

Please sign in to comment.