Skip to content

Commit

Permalink
return promise not throw
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Dec 26, 2024
1 parent 0b9c4bd commit 45b7b5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension-support/extension-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 45b7b5f

Please sign in to comment.