Browse Source

Check for error on mkdir

pull/1692/head
Darren Shepherd 5 years ago
parent
commit
c25f1ab1b6
  1. 4
      pkg/agent/run.go

4
pkg/agent/run.go

@ -108,7 +108,9 @@ func Run(ctx context.Context, cfg cmds.Agent) error {
}
cfg.DataDir = filepath.Join(cfg.DataDir, "agent")
os.MkdirAll(cfg.DataDir, 0700)
if err := os.MkdirAll(cfg.DataDir, 0700); err != nil {
return err
}
lb, err := loadbalancer.Setup(ctx, cfg)
if err != nil {

Loading…
Cancel
Save