call getErrors instead of errors