Merge pull request #366 from harshavardhana/pr_out_fix_nil_pointer_dereference_when_err_is_nil

master
Harshavardhana 10 years ago
commit d909a0e297
  1. 2
      pkg/drivers/donut/donut.go

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

Loading…
Cancel
Save