coreos / butane

Butane translates human-readable Butane Configs into machine-readable Ignition Configs.
https://coreos.github.io/butane/
Apache License 2.0
255 stars 70 forks source link

config: define error structs for errors that have context #457

Closed bgilbert closed 1 year ago

bgilbert commented 1 year ago

Butane has two sites that want to include additional information in an error string. Rather than requiring callers to string-match to detect these, define structs with the error details.

This should not be a breaking change.