Skip to content

Commit

Permalink
reactor(config): skip name from config resolution error if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Aug 10, 2022
1 parent 0cf4434 commit 951dbc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sanity/src/config/ConfigResolutionError.ts
Expand Up @@ -19,7 +19,7 @@ export class ConfigResolutionError extends Error {
)

super(
`Could not resolve ${type} \`${name}\`:\n${messages
`Could not resolve ${type}${name ? ` \`${name}\`` : ''}:\n${messages
.map((message) => `\t- ${message}`)
.join('\n')}\n\n`
)
Expand Down

0 comments on commit 951dbc6

Please sign in to comment.