break on error, resume on continue

added break on error, add space for easier reading