[Enhancement] Error message should specify what file failed to parse when pointing to a dir
Is your feature request related to a problem? Please describe.
When running cfn-guard validate and using the -d flag to point to a directory that contains input files, and parsing of one of these file fails, the tool should specify parsing of which file failed. Currently the tool just says parsing of YAML failed without any context.
Describe the solution you'd like
Running the command cfn-guard validate -r <path> -d <path> , where one of the files under the input directory is invalid JSON returns -
Error occurred Error parsing incoming YAML context EOF while parsing a value. Ideally it should also print the name of the file that it failed to parse such as -
`Error occurred Error parsing incoming YAML context EOF while parsing a value in file <filename.json>'
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.