'Wait for errors to be visible, then return them.'

def wait_for_errors(self):

    def _check_func():
        'Return    success    status    and    any    errors    that    occurred.'
        errors = self.errors
        return (bool(errors), errors)
    return Promise(_check_func, 'Errors    are    visible').fulfill()
