From 45b7b5fabd61512e871e9d360f7e9be9cbcd631c Mon Sep 17 00:00:00 2001 From: Thomas Weber Date: Wed, 25 Dec 2024 22:52:50 -0600 Subject: [PATCH] return promise not throw --- src/extension-support/extension-manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension-support/extension-manager.js b/src/extension-support/extension-manager.js index 966ffa8ea19..5268ad938e8 100644 --- a/src/extension-support/extension-manager.js +++ b/src/extension-support/extension-manager.js @@ -291,7 +291,7 @@ class ExtensionManager { }); if (optExtensionId) { if (!this._loadedExtensions.has(optExtensionId)) { - throw new Error(`Unknown extension: ${optExtensionId}`); + return Promise.reject(new Error(`Unknown extension: ${optExtensionId}`)); } return refresh(this._loadedExtensions.get(optExtensionId)); }