Adds error references to models/collections.