|
@@ -304,7 +304,7 @@ internal object ExtensionLoader {
|
|
when (val obj = Class.forName(it, false, classLoader).getDeclaredConstructor().newInstance()) {
|
|
when (val obj = Class.forName(it, false, classLoader).getDeclaredConstructor().newInstance()) {
|
|
is Source -> listOf(obj)
|
|
is Source -> listOf(obj)
|
|
is SourceFactory -> obj.createSources()
|
|
is SourceFactory -> obj.createSources()
|
|
- else -> throw Exception("Unknown source class type! ${obj.javaClass}")
|
|
|
|
|
|
+ else -> throw Exception("Unknown source class type: ${obj.javaClass}")
|
|
}
|
|
}
|
|
} catch (e: Throwable) {
|
|
} catch (e: Throwable) {
|
|
logcat(LogPriority.ERROR, e) { "Extension load error: $extName ($it)" }
|
|
logcat(LogPriority.ERROR, e) { "Extension load error: $extName ($it)" }
|