krieselreihe / litr

Litr (Language Independent Task Runner) lets you configure and then run any tasks you want for any language.
MIT License
8 stars 0 forks source link

Duplicated identifier report as syntax error in TOML configuration file #27

Closed MartinHelmut closed 3 years ago

MartinHelmut commented 3 years ago

Given the following config example:

[commands]
test = "..."

[commands.test]
script = "..."

The following error will be produced:

Error:
4 | [commands.test]
  | ^ - There is a syntax error inside the configuration file.

This is not really helpful and should rather be explicit that an identifier was duplicated.