mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-14 16:24:34 -05:00
fix: Do not shadow exceptions on ext install (#2180)
Depending on where the exception occurred, the uninstall may fail, because the extension is not installed in the first place, which hides the actual error
This commit is contained in:
@@ -264,7 +264,10 @@ object Extension {
|
|||||||
PackageTools.jarLoaderMap.remove(jarFilePath)?.close()
|
PackageTools.jarLoaderMap.remove(jarFilePath)?.close()
|
||||||
File(jarFilePath).delete()
|
File(jarFilePath).delete()
|
||||||
|
|
||||||
uninstallExtension(pkgName)
|
try {
|
||||||
|
uninstallExtension(pkgName)
|
||||||
|
} catch (_: Throwable) {
|
||||||
|
}
|
||||||
throw e
|
throw e
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user