[#986] Create an errors component to be used in .tt files

Fixes #986.
Merge pull request #987 from afuna/errors-bug-986

[#986] Create an errors component to be used in .tt files