Add an ``if errors: ....`` instead of exiting inside the loop.