crocs-muni / eacirc

Automatic problem solver based on circuit-like representation and genetic programming
13 stars 8 forks source link

Issue-202 More verbosity for parsing configuration error #209

Closed ghost closed 7 years ago

ghost commented 7 years ago

Actual example of error output:

09:51:35 [error] parse error - unexpected ':'; expected ']' on line 19

It is possible to add also buffer in which error was found, but it is not guaranteed there is line with error in buffer

For example for this config:

 18                 "function-set": ["XOR", "AND",
 19                 "num-of-generations": 100,

It outputs:

09:55:38 [error] parse error - unexpected ':'; expected ']' on line [19]: 
,
        "num-of-generations": 100,

The reason for this is external library we are using, because it contains only this buffer at the moment of error.