Let a bad JSON file fail with a useful message
Catch the parse error, name the file, and keep the original exception on the chain.
Tutorials
Four opening lessons. Each one stays with a single mistake and the code that avoids it.
Catch the parse error, name the file, and keep the original exception on the chain.