Merge "If input zip file cannot opened, print its name." am: 7c78b3c98e
am: 865f0d8900
am: 0b8e89bb23
Change-Id: I021f71977e25431bf58e6fb680e7ca830bf8898f
This commit is contained in:
commit
fffc24fbaf
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue