Skip to content

Commit 3bcd226

Browse files
committed
fix(etcd.go): fix golint errors
1 parent c39a561 commit 3bcd226

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/etcd/etcd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ func IsRunning(c cookoo.Context, p *cookoo.Params) (interface{}, cookoo.Interrup
154154
time.Sleep(250 * time.Millisecond)
155155
}
156156
log.Errf(c, "Etcd is not answering after %d attempts.", count)
157-
return false, &cookoo.FatalError{"Could not connect to Etcd."}
157+
return false, &cookoo.FatalError{Error: "Could not connect to Etcd."}
158158
}
159159

160160
// Set sets a value in etcd.
@@ -417,7 +417,7 @@ func MakeDir(c cookoo.Context, p *cookoo.Params) (interface{}, cookoo.Interrupt)
417417

418418
res, err := client.CreateDir(name, ttl)
419419
if err != nil {
420-
return res, &cookoo.RecoverableError{err.Error()}
420+
return res, &cookoo.RecoverableError{Message: err.Error()}
421421
}
422422

423423
return res, nil

0 commit comments

Comments
 (0)