Skip to content

lab: Display error info per field#7887

Draft
distantnative wants to merge 1 commit intov6/developfrom
v6/fix/fields-errors-info
Draft

lab: Display error info per field#7887
distantnative wants to merge 1 commit intov6/developfrom
v6/fix/fields-errors-info

Conversation

@distantnative
Copy link
Member

@distantnative distantnative commented Jan 17, 2026

Description

@bastianallgeier Do you think this would be a suitable direction for what you wrote in the issue (have errors only be replaced for the Panel, but fail directly for other usages)?

@distantnative distantnative force-pushed the v6/fix/fields-errors-info branch from 9c34954 to a4c92ee Compare January 17, 2026 20:26
@distantnative distantnative force-pushed the v6/fix/fields-errors-info branch from a4c92ee to 44de38d Compare January 23, 2026 16:23
$props[$name] = (new InfoField(
label: $e,
icon: 'alert',
text: $e->getMessage() . ' in file: ' . F::relativepath($e->getFile(), $root) . ' (line ' . $e->getLine() . ')',
Copy link
Member Author

@distantnative distantnative Jan 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably want a a helper method somewhere centrally that always resolves the F::relativepath() with the document root.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Panel field-error reporting became less precise

2 participants