mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-04-20 03:24:50 +00:00
Move unhandled exception announcement check to correct method
This commit is contained in:
parent
374d9950be
commit
081ae1dd88
1 changed files with 3 additions and 2 deletions
|
@ -291,8 +291,7 @@ open class JSClient : IPlatformClient {
|
|||
.value;
|
||||
}
|
||||
catch(ex: Throwable) {
|
||||
if(ex !is PluginEngineException)
|
||||
announcePluginUnhandledException("isChannelUrl", ex);
|
||||
announcePluginUnhandledException("isChannelUrl", ex);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -564,6 +563,8 @@ open class JSClient : IPlatformClient {
|
|||
}
|
||||
|
||||
private fun announcePluginUnhandledException(method: String, ex: Throwable) {
|
||||
if(ex is PluginEngineException)
|
||||
return;
|
||||
try {
|
||||
StateAnnouncement.instance.registerAnnouncement("PluginUnhandled_${config.id}_${method}",
|
||||
"Plugin ${config.name} encountered an error in [${method}]",
|
||||
|
|
Loading…
Add table
Reference in a new issue