error

Appends an error to the errors list. Overwrites if already registered for the same key.