fix error string format
Signed-off-by: zilong.wang <zilong.wang@daocloud.io>
This commit is contained in:
parent
3d734d0345
commit
498e5b27f7
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user