as32: Fine-tune exception handling in GooglePluginUpdateVerifier
This commit is contained in:
committed by
Nikolay Krasko
parent
bf890b46f3
commit
cd91cffdeb
@@ -43,9 +43,9 @@ class GooglePluginUpdateVerifier : PluginUpdateVerifier() {
|
||||
else
|
||||
PluginVerifyResult.decline("version to be verified")
|
||||
} catch (e: Exception) {
|
||||
LOG.error("Exception when verifying plugin ${pluginDescriptor.pluginId.idString} version $version", e)
|
||||
LOG.info("Exception when verifying plugin ${pluginDescriptor.pluginId.idString} version $version", e)
|
||||
return when (e) {
|
||||
is MalformedURLException, is IOException ->
|
||||
is IOException ->
|
||||
PluginVerifyResult.decline("unable to connect to compatibility verification repository")
|
||||
is JAXBException -> PluginVerifyResult.decline("unable to parse compatibility verification metadata")
|
||||
else -> PluginVerifyResult.decline("exception during verification ${e.message}")
|
||||
|
||||
Reference in New Issue
Block a user