Skip to content

add an explicit error message in case of YML parsing error.

Cyril Guilloud requested to merge yaml_parsing_help into master
Error in YAML parsing:
----------------
class: SAD
name: sadam
counters:
  -counter_name: sc1
   channel: 1
  -counter_name: sc2
   channel: 2

----------------
mapping values are not allowed here
  in "pcsht/sim_acq_dev.yml", line 5, column 11:
       channel: 1
              ^
Hint: You can check your configuration with an on-line YAML validator like http://www.yamllint.com/ 

instead of :

ruamel.yaml.scanner.ScannerError: mapping values are not allowed here
  in "pcsht/sim_acq_dev.yml", line 5, column 11:
       channel: 1

Merge request reports