errormsgs

This commit is contained in:
minjaesong
2022-06-26 20:04:52 +09:00
parent bb2641a523
commit 6e4677352d
4 changed files with 20 additions and 5 deletions

View File

@@ -267,7 +267,14 @@ object ModMgr {
catch (noSuchModule: FileNotFoundException) {
printmsgerr(this, "No such module: $moduleName, skipping...")
logError(LoadErrorType.NOT_EVEN_THERE, moduleName)
logError(LoadErrorType.NOT_EVEN_THERE, moduleName, noSuchModule)
moduleInfo.remove(moduleName)?.let { moduleInfoErrored[moduleName] = it }
}
catch (noSuchModule2: ModuleDependencyNotSatisfied) {
printmsgerr(this, noSuchModule2.message)
logError(LoadErrorType.NOT_EVEN_THERE, moduleName, noSuchModule2)
moduleInfo.remove(moduleName)?.let { moduleInfoErrored[moduleName] = it }
}