Restore errors directive, used from html template

Partially reverts 25a6b7c9f1f88ea22d0af513e451fab5a0988d30