insight-platform / Savant

Python Computer Vision & Video Analytics Framework With Batteries Included
https://savant-ai.io
Apache License 2.0
510 stars 41 forks source link

Better OmegaConf error reporting #798

Open bwsw opened 1 week ago

bwsw commented 1 week ago

Now, when OmegaConf contains incorrect keys, the system results in an error, including a stack trace, exception, and actual error. We do not need to display the service information except the actual problem.

image

The actual report can be like:

[ERROR] Configuration parsing error: the key local is not known in the object NvInferDetector.

If we can display a YAML block containing the error, it would be awesome.