-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: master
Are you sure you want to change the base?
Rewrite error messages #1370
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🇪🇷
packages/shared-components/src/formio/overrides/wizard-overrides.js/wizard-overrides.js
Outdated
Show resolved
Hide resolved
packages/shared-components/src/formio/components/base/FormioReactComponent.tsx
Show resolved
Hide resolved
@@ -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 }); |
There was a problem hiding this comment.
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', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warn
Stop using formio error messages
Fix Address error message