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

This commit is contained in:
Krishnan Parthasarathi 2016-10-28 21:16:03 +05:30 committed by Harshavardhana
parent 0fa2477cb0
commit 6a57f2c1f0

View File

@ -18,6 +18,7 @@ package cmd
import ( import (
"encoding/json" "encoding/json"
"fmt"
"path" "path"
"sort" "sort"
"sync" "sync"
@ -201,7 +202,8 @@ func pickValidXLMeta(metaArr []xlMetaV1, modTime time.Time) xlMetaV1 {
return meta 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. // list of all errors that can be ignored in a metadata operation.