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

@error should print string contents #3472

Open
nex3 opened this issue Jan 6, 2023 · 0 comments
Open

@error should print string contents #3472

nex3 opened this issue Jan 6, 2023 · 0 comments
Labels
enhancement New feature or request planned We would like to add this feature at some point

Comments

@nex3
Copy link
Contributor

nex3 commented Jan 6, 2023

Currently, the @error rule prints the result of calling inspect() on the value it's passed. This is fine for most value types, but libraries may want to have finer-grained control over error messages, such as including newlines or other formatting. To support this, if the argument to @error is a string we should print its contents rather than its debug format.

@nex3 nex3 added enhancement New feature or request planned We would like to add this feature at some point labels Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request planned We would like to add this feature at some point
Projects
None yet
Development

No branches or pull requests

1 participant