Fix #6618 : added Mode::addErrors()

thanks!