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 can I config the error message #62

Open
NealST opened this issue Sep 3, 2021 · 3 comments
Open

How can I config the error message #62

NealST opened this issue Sep 3, 2021 · 3 comments
Assignees

Comments

@NealST
Copy link

NealST commented Sep 3, 2021

the default error message "failed for rules: kebab-case" is not easy understandable, so I want to config my error message for it.

@NealST NealST changed the title how can i config the error message How can I config the error message Sep 3, 2021
@loeffel-io loeffel-io assigned loeffel-io and unassigned loeffel-io Nov 2, 2021
@loeffel-io
Copy link
Owner

Hey @NealST, what error message would you like to see?

@loeffel-io loeffel-io self-assigned this Nov 2, 2021
@plaindocs
Copy link

plaindocs commented Nov 8, 2021

Came here to write this ☝️ .

Something like

2021/11/08 14:58:13 ./pages/test-test.md.erb should be written in snakecase 
OR
2021/11/08 14:58:13 ./pages/test-test.md.erb should have a filename written in snakecase 

might be better.

But how do you feel about adding

ls:
  .md.erb: snake_case
     error: "Custom error message with %placeholders"

@NealST
Copy link
Author

NealST commented Nov 10, 2021

@plaindocs,your said is what I want, and on the other hand, most of my users are chinese, so I want to config the error message to chinese. Something like this:

./pages/test-test.md.erb 需要使用驼峰格式编写

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

3 participants