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

Better error message for already defined constants #522

Open
dumblob opened this issue Feb 25, 2016 · 0 comments
Open

Better error message for already defined constants #522

dumblob opened this issue Feb 25, 2016 · 0 comments

Comments

@dumblob
Copy link

dumblob commented Feb 25, 2016

The error message should also contain some information where the constant has been declared. At least which module or better in which module and namespace.

load web.html import html

routine main(...: string as _cols) {
  cols = {=>}
  for (col in _cols) cols[col[1]] = none
  return 0
}
0$ dao ~/__dao_constant_cannot_be_modified.dao
[[ERROR]] in file "/home/test/__dao_constant_cannot_be_modified.dao":
  At line 5 : Invalid for loop --- " for (col in _cols) cols[col[1]] ... ";
  At line 5 : Constant cannot be modified --- " col ";
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

1 participant