Skip to content

Commit

Permalink
Improve error message in defaultConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
mikabytes committed Feb 4, 2024
1 parent ae42f65 commit ade2bda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/configurationSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ export function getDefaultConfig() {
return Object.entries(SCHEMA.properties).reduce((acc, [k, v]) => {
if (typeof v !== `object` || v === null) {
throw new Error(
`Expected schema key '${k}' to be an object, but it was of type '${typeof v}'. Got: ${v}`,
`Expected the value at SCHEMA.${k} to be an object, but it was of type '${typeof v}'. Got: ${v}`,
);
}
if (v.hasOwnProperty('default')) {
Expand Down

0 comments on commit ade2bda

Please sign in to comment.