Refactor the unmarshal error formatting to return an error struct to give callers more formatting flexibility. _Originally posted by @joelanford in https://github.com/operator-framework/operator-registry/issues/1089#issuecomment-1522368974_
Refactor the unmarshal error formatting to return an error struct to give callers more formatting flexibility.
Originally posted by @joelanford in #1089 (comment)