Formatting selected files won’t stop when error occurs