If an alarm is going off, seperate from the error field as to not override it.
bool alarmerror = false;