Skip to content

Commit c730541

Browse files
Update src/lib/acode.js
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 57d4231 commit c730541

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/lib/acode.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,9 @@ export default class Acode {
430430

431431
[onPluginsLoadCompleteCallback]() {
432432
for (const key in this.#pluginWatchers) {
433-
this.#pluginWatchers[key].reject();
433+
this.#pluginWatchers[key].reject(new Error(`Plugin '${key}' failed to load.`));
434434
}
435+
this.#pluginWatchers = {};
435436
}
436437

437438
waitForPlugin(pluginId) {

0 commit comments

Comments
 (0)