Skip to content

Commit

Permalink
Check for empty node id (#263)
Browse files Browse the repository at this point in the history
Fixes #253 

(cherry picked from commit 94d2a4e)
  • Loading branch information
Marius Sturm authored and bernd committed Jul 12, 2018
1 parent 6e59803 commit acb103f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ func (ctx *Ctx) LoadConfig(path *string) error {
log.Fatal("No node ID was configured.")
}
ctx.NodeId = common.GetCollectorId(ctx.UserConfig.NodeId)
if ctx.NodeId == "" {
log.Fatal("Empty node-id, exiting! Make sure a valid id is configured.")
}

// node_name
if ctx.UserConfig.NodeName == "" {
Expand Down

0 comments on commit acb103f

Please sign in to comment.