Skip to content

Commit

Permalink
Fix rethrowConfigError call sites
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas committed Apr 16, 2024
1 parent 003364b commit a965ece
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config-array.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function assertValidBaseConfig(config, index) {
try {
FILES_AND_IGNORES_SCHEMA.validate(validateConfig);
} catch (validationError) {
rethrowConfigError(config, index, validationError);
rethrowConfigError(config, index, { cause: validationError });
}
}

Expand Down Expand Up @@ -906,7 +906,7 @@ export class ConfigArray extends Array {
try {
return this[ConfigArraySymbol.schema].merge(result, this[index]);
} catch (validationError) {
rethrowConfigError(this[index], index, validationError);
rethrowConfigError(this[index], index, { cause: validationError});
}
}, {}, this);

Expand Down

0 comments on commit a965ece

Please sign in to comment.