Relate the error detection condition with the error stop condition in alarms.md