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

More helpful error messages #23

Open
fergusq opened this issue Nov 13, 2014 · 1 comment
Open

More helpful error messages #23

fergusq opened this issue Nov 13, 2014 · 1 comment

Comments

@fergusq
Copy link

fergusq commented Nov 13, 2014

The current error messages are not as helpful as they could, for example, code Print("a", "b") produces error message:

No function matches for a call 'Print(String, String)'
Call of an undefined function 'Print'

This error message could provide some useful information, such as if there exists a function called "Print", but just has a different number of arguments.

Also, the syntax errors could use the actual characters and not just their abbreviated names. For example, the code

Sub a
End Sub

gives the error

Expected "lparen" but got "newline"

It could provide something such as

Expected `(' before the end of the line
@henkkuli
Copy link
Collaborator

Hi!

Thanks for your report. Both of the problems are known, but thanks for making them issues. Now we can more easily track them.

The former problem must be rewriten into the compiler. The latter can be -- at least as far as I know -- fixed by using nested resources of i18nex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants