It seems like all of the YAML error stuff should be handled in the hiera implementation of the terminus, or in hiera itself.