Skip to content

Commit dc1dea9

Browse files
Copilothotlong
andcommitted
Improve modal cross-reference error message to clarify page resolution
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 41704dd commit dc1dea9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/spec/src/stack.zod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ function validateCrossReferences(config: ObjectStackDefinition): string[] {
430430
// Validate modal-type actions reference a defined page
431431
if (action.type === 'modal' && action.target && pageNames.size > 0 && !pageNames.has(action.target)) {
432432
errors.push(
433-
`Action '${action.name}' references modal '${action.target}' which is not defined in pages.`,
433+
`Action '${action.name}' references page '${action.target}' (via modal target) which is not defined in pages.`,
434434
);
435435
}
436436
}

0 commit comments

Comments
 (0)