Fix some rather confusing indentation and control flow in the errno