Fix: ErrorClass is "hasError", not "error"