fix error string format

Signed-off-by: zilong.wang <zilong.wang@daocloud.io>
This commit is contained in:
Zilong Wang 2021-09-14 18:17:27 +08:00 committed by zilong.wang
parent 3d734d0345
commit 498e5b27f7

View File

@ -58,12 +58,12 @@ func initImages(imageListFile string) {
if imageListFile != "" {
fileContent, err := ioutil.ReadFile(imageListFile)
if err != nil {
panic(fmt.Errorf("Error reading '%v' file contents: %v", imageList, err))
panic(fmt.Errorf("error reading '%v' file contents: %v", imageList, err))
}
err = toml.Unmarshal(fileContent, &imageList)
if err != nil {
panic(fmt.Errorf("Error unmarshalling '%v' TOML file: %v", imageList, err))
panic(fmt.Errorf("error unmarshalling '%v' TOML file: %v", imageList, err))
}
}