mirror of
https://gitlab.bixilon.de/bixilon/pixlyzer.git
synced 2025-09-25 21:24: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")
|
||||
continue
|
||||
}
|
||||
clazz.forceInit()
|
||||
clazz.getDeclaredMethod("start").invoke(null)
|
||||
try {
|
||||
clazz.forceInit()
|
||||
clazz.getDeclaredMethod("start").invoke(null)
|
||||
} catch (error: Throwable) {
|
||||
println("Can not execute module: $error")
|
||||
error.printStackTrace()
|
||||
}
|
||||
}
|
||||
|
||||
val all: MutableMap<String, Any> = mutableMapOf()
|
||||
|
Loading…
x
Reference in New Issue
Block a user