moduleinfo won't contain bad modules

This commit is contained in:
minjaesong
2019-03-17 13:49:20 +09:00
parent ee732dbcf9
commit 57ebbcb421

View File

@@ -118,9 +118,11 @@ object ModMgr {
}
catch (noSuchModule: FileNotFoundException) {
printdbgerr(this, "No such module: $moduleName, skipping...")
moduleInfo.remove(moduleName)
}
catch (e: ClassNotFoundException) {
printdbgerr(this, "$moduleName has nonexisting entry point, skipping...")
moduleInfo.remove(moduleName)
}
}