(#21211) Improve error message when hiera fails to load YAML file

Avoid errors like this when running puppet:

```
Error: Could not retrieve catalog from remote server: Error 400 on
SERVER: Failed when searching for node
buildagent.drewc.cloud.spotify.net: malformed format string - %S
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
```