fix: error injection order
This commit is contained in:
parent
5520d5b7e4
commit
3bd00d09fd
1 changed files with 4 additions and 4 deletions
|
|
@ -486,6 +486,10 @@ export class ConfigHandler {
|
|||
configLoadInterrupted,
|
||||
} = await this.currentProfile.reloadConfig(this.additionalContextProviders);
|
||||
|
||||
if (injectErrors) {
|
||||
errors.unshift(...injectErrors);
|
||||
}
|
||||
|
||||
this.notifyConfigListeners({ config, errors, configLoadInterrupted });
|
||||
|
||||
this.initter.emit("init");
|
||||
|
|
@ -500,10 +504,6 @@ export class ConfigHandler {
|
|||
configLoadInterrupted,
|
||||
});
|
||||
|
||||
if (injectErrors) {
|
||||
errors.unshift(...injectErrors);
|
||||
}
|
||||
|
||||
return {
|
||||
config,
|
||||
errors: errors.length ? errors : undefined,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue