Yes, the error of law was that they refused to use their discretion. If they had used their discretion to judge in favour of the landlord, it would have been legitimate.