This conditional is twisted inside out, in a manner of speaking. Could we express this conditional like so?

```ruby
if default.nil?
  raise error
else
  Hiera.debug(error)
  @cache[path][:data] = default
end
```
This would make the conditional much easier to read.