Log.LogFull(senderName,LM.CategorySYSTEM,LM.LevelERROR,LM.SeverityCritical,LM.ImpactCritical,LM.MessageNameREAD,`Was not able to read the ZIP file.`,readerError.Error())
return
}
for_,file:=rangereader.File{
iffile.Name==path{
fileReader,openError:=file.Open()
deferfileReader.Close()
ifopenError==nil{
contentData,readError:=ioutil.ReadAll(fileReader)
ifreadError!=nil{
Log.LogFull(senderName,LM.CategorySYSTEM,LM.LevelERROR,LM.SeverityCritical,LM.ImpactCritical,LM.MessageNameREAD,`Was not able to read the content of the desired file.`,readError.Error(),path)
return
}
result=contentData
return
}
}
}
Log.LogFull(senderName,LM.CategorySYSTEM,LM.LevelERROR,LM.SeverityCritical,LM.ImpactCritical,LM.MessageNameNOTFOUND,`The desired file is not part of the ZIP file.`,`Do you use an old version?`,path)