Skip to content

Commit

Permalink
Better error
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic committed Dec 19, 2024
1 parent e824b1a commit 0ba701e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/astro/src/content/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ export function createReference({ lookupMap }: { lookupMap: ContentLookupMap })
if (!store) {
ctx.addIssue({
code: ZodIssueCode.custom,
message: `**${ctx.path.join('.')}:** Reference to ${collection} could not be resolved. Store not available.`,
message: `**${ctx.path.join('.')}:** Reference to ${collection} could not be resolved: store not available.\nThis is an Astro bug, so please file an issue at https://github.com/withastro/astro/issues.`,
});
return;
}
Expand Down

0 comments on commit 0ba701e

Please sign in to comment.