dao icon indicating copy to clipboard operation
dao copied to clipboard

Better error message for already defined constants

Open dumblob opened this issue 9 years ago • 0 comments

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 ";

dumblob avatar Feb 25 '16 14:02 dumblob