Compare commits

...

1 Commits

Author SHA1 Message Date
Constantin Piber
b0bc8c6fb3 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
2026-07-12 16:21:47 -04:00

View File

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