Skip to content

Commit

Permalink
maybe better message
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecAivazis committed Mar 6, 2024
1 parent 97d4f0e commit 6240df5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/houdini/src/codegen/validators/componentFields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,13 @@ export default async function componentFields(config: Config, docs: Document[]):
(existingField && existingField.filepath !== filepath))
) {
errors.push({
message: `Duplicate component field definition for ${parent}.${fieldValue}`,
message:
`Duplicate component field definition for ${parent}.${fieldValue}.` +
(existingField
? 'The conflicting component field was defined in ' +
existingField.filepath
: ''),
filepath,
description: existingField
? 'The conflicting component field was defined in ' +
existingField.filepath
: '',
})
}

Expand Down

0 comments on commit 6240df5

Please sign in to comment.