Change the way errors are added

In order to retain compatibility with attribute interpolation.