Error messages: delayed rendering with templating

Maybe a single variable with more meaning, `$enclosure` or something like that.