osbuild / otk

A proof of concept for a new `osbuild-mpp`.
Apache License 2.0
3 stars 9 forks source link

otk: improve error handling by adding "state" to all otk errors #263

Closed mvo5 closed 12 hours ago

mvo5 commented 14 hours ago

This commit centralizes error formating into the OTKError and adds support for takingthe parser "state". This allows us to consistently give better error information like what file broke and (potentially in the future) more details.

Note that this now requires that all OTKError exceptions pass a message.

Note that there are two untested errors left, I will try to get to them