mirror of
https://github.com/minio/minio.git
synced 2025-02-03 01:46:00 -05:00
Merge pull request #366 from harshavardhana/pr_out_fix_nil_pointer_dereference_when_err_is_nil
This commit is contained in:
commit
d909a0e297
@ -48,9 +48,11 @@ 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)
|
||||
err = err.Annotate(map[string]string{"path": path})
|
||||
if err != nil {
|
||||
log.Println(err.EmitHumanReadable())
|
||||
err = err.Annotate(map[string]string{"path": path})
|
||||
if err != nil {
|
||||
log.Println(err.EmitHumanReadable())
|
||||
}
|
||||
}
|
||||
|
||||
go start(ctrlChannel, errorChannel, s)
|
||||
|
Loading…
x
Reference in New Issue
Block a user