Merge "If input zip file cannot opened, print its name." am: 7c78b3c98e am: 865f0d8900 am: 0b8e89bb23

Change-Id: I021f71977e25431bf58e6fb680e7ca830bf8898f
This commit is contained in:
Automerger Merge Worker 2020-01-28 02:21:02 +00:00
commit fffc24fbaf
1 changed files with 4 additions and 2 deletions

View File

@ -667,8 +667,10 @@ func (fiz *FileInputZip) Open() error {
return nil
}
var err error
fiz.reader, err = zip.OpenReader(fiz.Name())
return err
if fiz.reader, err = zip.OpenReader(fiz.Name()); err != nil {
return fmt.Errorf("%s: %s", fiz.Name(), err.Error())
}
return nil
}
func main() {