Adding iodine annotation to donut.Start(path)

master
Frederick F. Kautz IV 10 years ago
parent 12a17f1ed7
commit 1be3766ae6
  1. 1
      pkg/drivers/donut/donut.go

@ -48,6 +48,7 @@ func Start(path string) (chan<- string, <-chan error, drivers.Driver) {
// TODO donut driver should be passed in as Start param and driven by config // TODO donut driver should be passed in as Start param and driven by config
var err *iodine.Error var err *iodine.Error
s.donut, err = donut.NewDonut(path) s.donut, err = donut.NewDonut(path)
err = err.Annotate(map[string]string{"path": path})
if err != nil { if err != nil {
log.Println(err.EmitHumanReadable()) log.Println(err.EmitHumanReadable())
} }

Loading…
Cancel
Save