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:
Constantin Piber
2026-07-12 22:21:47 +02:00
committed by GitHub
parent 9a0871ab93
commit b0bc8c6fb3

View File

@@ -264,7 +264,10 @@ object Extension {
PackageTools.jarLoaderMap.remove(jarFilePath)?.close()
File(jarFilePath).delete()
try {
uninstallExtension(pkgName)
} catch (_: Throwable) {
}
throw e
}
} else {