1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix all-or-nothing when initially loading extensions (#4384)

* Fix all-or-nothing when initially loading extensions

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Log error instead of displaying error box

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2021-11-22 20:30:47 -05:00 committed by GitHub
parent 78a4e2a126
commit 8f84f394fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -393,7 +393,14 @@ export class ExtensionDiscovery extends Singleton {
for (const extension of userExtensions) {
if ((await fse.pathExists(extension.manifestPath)) === false) {
try {
await this.installPackage(extension.absolutePath);
} catch (error) {
const message = error.message || error || "unknown error";
const { name, version } = extension.manifest;
logger.error(`${logModule}: failed to install user extension ${name}@${version}`, message);
}
}
}