method GetErrors should return value by reference