bmwcarit / Emma

Emma Memory and Mapfile Analyser
GNU General Public License v3.0
5 stars 1 forks source link

Trap JSON decoding errors #24

Closed holzkohlengrill closed 5 years ago

holzkohlengrill commented 5 years ago

Description

Python will throw an exception when a JSON input file has no valid syntax. This is not pretty. => emma + emma_vis ## Expected behaviour

A SCout error message should appear combined with a proper exit of Emma.

Observed behaviour

Python JSONDecodeError appears.

Steps to reproduce

Use invalid JSON config file.

===

=> Same issue with FileNotFoundError => emma + emma_vis + emma_deltas