yamlscript
yamlscript copied to clipboard
Improve error messages
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.
Use errgo.io style error messages
Set up error message wiki