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

Make error messages better #48

Open
ingydotnet opened this issue Jan 16, 2024 · 2 comments
Open

Make error messages better #48

ingydotnet opened this issue Jan 16, 2024 · 2 comments
Labels
core Language and compiler issues

Comments

@ingydotnet
Copy link
Member

From the ys CLI we get:

$ ys -e 'say: 2+2'
Error: java.lang.Exception: Invalid symbol: '+2'{:eval ["say: 2+2"], :debug-stage {}}

would be better as:

$ ys -e 'say: 2+2'
Error: Invalid symbol: '+2'

And in Perl binding:

$ LD_LIBRARY_PATH=~/lib PERL5LIB=perl/lib perl -MXXX -MYAMLScript -e 'XXX + YAMLScript->new->load("!yamlscript/v0\nsay: 2+2")'
libyamlscript: Invalid symbol: '+2' at perl/lib/YAMLScript.pm line 81.

would be better as:

$ LD_LIBRARY_PATH=~/lib PERL5LIB=perl/lib perl -MXXX -MYAMLScript -e 'XXX + YAMLScript->new->load("!yamlscript/v0\nsay: 2+2")'
Error libyamlscript:
Invalid symbol: '+2'
  at perl/lib/YAMLScript.pm line 81.
@ingydotnet ingydotnet added the core Language and compiler issues label Jan 16, 2024
@ingydotnet
Copy link
Member Author

Use errgo.io style error messages

@ingydotnet
Copy link
Member Author

Set up error message wiki

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

No branches or pull requests

1 participant