Fix #6618 : added Mode::addErrors()

`array` not `Array`