Skip to content

fix: resolve() called after reject() on plugin install failure#417

Open
Saatvik-GT wants to merge 1 commit intoneutralinojs:mainfrom
Saatvik-GT:fix/plugin-loader-resolve-after-reject
Open

fix: resolve() called after reject() on plugin install failure#417
Saatvik-GT wants to merge 1 commit intoneutralinojs:mainfrom
Saatvik-GT:fix/plugin-loader-resolve-after-reject

Conversation

@Saatvik-GT
Copy link
Copy Markdown

When npm install fails in pluginloader.add(), reject() was called but resolve() still ran unconditionally afterwards. Added return before reject() so the promise settles only once on error.
image

When npm install fails in pluginloader.add(), reject() was called but
resolve() still ran unconditionally afterwards. Added return before
reject() so the promise settles only once on error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant