This commit is contained in:
Daniel 2023-08-15 15:36:03 +08:00
parent f4f8bde3d1
commit 5e1ac8c298
No known key found for this signature in database
GPG Key ID: 86211BA83DF03017

View File

@ -432,9 +432,9 @@ func initLang() {
label := langMap["_label"].(string)
kernelLangs := langMap["_kernel"].(map[string]interface{})
for k, v := range kernelLangs {
num, err := strconv.Atoi(k)
if nil != err {
logging.LogErrorf("parse language configuration [%s] item [%d] failed [%s]", p, num, err)
num, convErr := strconv.Atoi(k)
if nil != convErr {
logging.LogErrorf("parse language configuration [%s] item [%d] failed: %s", p, num, convErr)
continue
}
kernelMap[num] = v.(string)