TRUNK-3882 Custom tag to render errors

(cherry picked from commit be50e0dc73b33272bc01482ec59f1ff3bc6f1acb)