Error messages: delayed rendering with templating

Duplicative TODO