mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
XL: Add more information to panic msg (#3119)
This commit is contained in:
parent
0fa2477cb0
commit
6a57f2c1f0
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user