mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-14 00:04: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()
|
||||
File(jarFilePath).delete()
|
||||
|
||||
uninstallExtension(pkgName)
|
||||
try {
|
||||
uninstallExtension(pkgName)
|
||||
} catch (_: Throwable) {
|
||||
}
|
||||
throw e
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user