Merge pull request #5979 from TianTianBigWang/fix/err-string-fmt

fix error string format
This commit is contained in:
Derek McGowan 2021-09-22 15:12:18 -07:00 committed by GitHub
commit d0bedc5bd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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))
}
}