IMHO this is not the right place to do this. I would rather update the template instead, so to allow the user to customize the way errors are rendered.