diff --git a/polymod/fs/SysZipFileSystem.hx b/polymod/fs/SysZipFileSystem.hx index 69a4a29a..d52a3cef 100644 --- a/polymod/fs/SysZipFileSystem.hx +++ b/polymod/fs/SysZipFileSystem.hx @@ -386,7 +386,14 @@ class SysZipFileSystem extends SysFileSystem if (StringTools.endsWith(filePath, archiveExt)) { Polymod.debug('- $filePath'); - addZipFile(filePath); + try + { + addZipFile(filePath); + } + catch (e) + { + Polymod.warning(MOD_ARCHIVE_READ_FAILED, 'Failed to read archive, skipping it, is it corrupt?\n$filePath\n${e}'); + } } } }