Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite error messages #1370

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open

Rewrite error messages #1370

wants to merge 23 commits into from

Conversation

lotorvik
Copy link
Contributor

Stop using formio error messages
Fix Address error message

@lotorvik lotorvik requested a review from a team as a code owner November 26, 2024 07:42
Copy link
Contributor

@magnurh-cx magnurh-cx left a comment

Choose a reason for hiding this comment

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

🇪🇷 ⚠️ 👍

@@ -213,14 +213,16 @@ class BaseComponent extends FormioReactComponent {

if (messages) {
if (Array.isArray(messages)) {
if (messages.length > 1) {
this.logger.info(`Should never get more then one message, got ${messages.length}.`, { messages });
Copy link
Member

Choose a reason for hiding this comment

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

hvilket nivå må vi ha for at det skal havne i loggen på server?

* Add message render the error messages Form.io template.
*/
addMessages(messages) {
this.logger.info('Trying to addMessages with Formio.io old template. Should use new error messages instead', {
Copy link
Member

Choose a reason for hiding this comment

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

warn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants