repochecker/*-inspector: Refactor file opening

This commit is contained in:
nemunaire 2022-11-21 19:02:37 +01:00
parent 14f10c91db
commit c28ad9533b

View File

@ -20,7 +20,8 @@ func checkZip(file *fic.EFile, exceptions *sync.CheckExceptions) (errs []error)
fdat, ok := fd.(io.ReaderAt)
if !ok {
log.Println("The current reader doesn't allow me to check this archive")
log.Printf("The current Importer (%t) doesn't allow me to check the archive: %s. Please test-it yourself", sync.GlobalImporter, file.GetOrigin())
return
}
size, err := sync.GetFileSize(sync.GlobalImporter, file.GetOrigin())