mirror of
https://gitlab.bixilon.de/bixilon/pixlyzer.git
synced 2025-09-26 13:40:02 -04:00
handle module errors
This commit is contained in:
parent
a99fc83b9e
commit
ed0dee2e5a
@ -101,8 +101,13 @@ object PixLyzer {
|
|||||||
println("Can not find module: $module")
|
println("Can not find module: $module")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
clazz.forceInit()
|
try {
|
||||||
clazz.getDeclaredMethod("start").invoke(null)
|
clazz.forceInit()
|
||||||
|
clazz.getDeclaredMethod("start").invoke(null)
|
||||||
|
} catch (error: Throwable) {
|
||||||
|
println("Can not execute module: $error")
|
||||||
|
error.printStackTrace()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val all: MutableMap<String, Any> = mutableMapOf()
|
val all: MutableMap<String, Any> = mutableMapOf()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user