osbuild / otk

A proof of concept for a new `osbuild-mpp`.
https://osbuild.org/
Apache License 2.0
4 stars 9 forks source link

otk: more error context improvements #265

Closed mvo5 closed 1 month ago

mvo5 commented 1 month ago

otk: add file to variable substitution errors too

This commit adds file context for errors from variable substitution too.


context: tweak erros and add tests for context lookup errors

This commit tweaks the error message for the conext generated errors and adds tests.


otk: include state in errors from externals

When an external fails, include the file that called the external as well by just reusing the new OTKError(state=state) exceptions.

This also adds a test for the external errors and tweaks the exception a bit based on the test output.