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

How should users defined error messages? #1

Open
hdngr opened this issue Oct 25, 2015 · 0 comments
Open

How should users defined error messages? #1

hdngr opened this issue Oct 25, 2015 · 0 comments

Comments

@hdngr
Copy link
Owner

hdngr commented Oct 25, 2015

The default can use the error messages defined in mongoose.

For example:

UserSchema.path('email').validate(function(email) {
  return email.length;
}, 'Email cannot be blank');

Would simply display the "Email cannot be blank error message."

However, should siracha expose options for custom error messages in the admin panel?

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

No branches or pull requests

1 participant