flyingcircusio / batou

batou is a universal, fractal deployment utility using Python.
https://batou.readthedocs.org
Other
47 stars 12 forks source link

Output component level error information #428

Open elikoga opened 6 months ago

elikoga commented 6 months ago

https://github.com/flyingcircusio/batou/blob/10caa6564689d6329988cb4ac5c53d0f998b2623/src/batou/component.py#L232-L251

If we try catch and rethrow errors in this function, we can enrich them with their tracebacks more meaningfully than having to throw a UnknownComponentConfigurationError as here https://github.com/flyingcircusio/batou/blob/10caa6564689d6329988cb4ac5c53d0f998b2623/src/batou/environment.py#L509-L517

Which says that this may indicate a bug in batou. But we don't want to have the message in a few cases (for example, user errors when using the templating mechanism (see #417)