YAML parsing errors identification for debugging config files
TODO: write code to make finding of YAML errors more easy: to add file / line number in error message.
NB : errors are raised from different code part depending in which file the error is located. ex :
- for an error in
__init__.yml
error is raised from _parse() - for an error in config file, error is raised from reload() booth from file bliss/config/static.py
for config errors, ruamel parser raise the error but as file is passed as a string, ruamel does not known the file name:
ruamel.yaml.scanner.ScannerError: while scanning a simple key
in "<unicode string>", line 3, column 1:
class:SimulatedMCA
Edited by Cyril Guilloud