XL: Add more information to panic msg (#3119)

master
Krishnan Parthasarathi 8 years ago committed by Harshavardhana
parent 0fa2477cb0
commit 6a57f2c1f0
  1. 4
      cmd/xl-v1-metadata.go

@ -18,6 +18,7 @@ package cmd
import (
"encoding/json"
"fmt"
"path"
"sort"
"sync"
@ -201,7 +202,8 @@ func pickValidXLMeta(metaArr []xlMetaV1, modTime time.Time) xlMetaV1 {
return meta
}
}
panic("Unable to look for valid XL metadata content")
pmsg := fmt.Sprintf("Unable to look for valid XL metadata content - %v %s", metaArr, modTime)
panic(pmsg)
}
// list of all errors that can be ignored in a metadata operation.

Loading…
Cancel
Save