Skip to content
  • Iustin Pop's avatar
    Rework exit model · 88a10df5
    Iustin Pop authored
    
    
    While updating the confd code, I realised that we have _lots_ of
    duplication in the exit model for the various programs.
    
    So this patch attempts to abstract all the exits via a couple of new
    functions; sorry for the somewhat big patch, but I hope the payoff is
    worth the change: the actual exit conditions are much clearer.
    
    Note that the patch (also) moves the exitIfBad function to Utils.hs,
    since that is more logical.
    
    Signed-off-by: default avatarIustin Pop <iustin@google.com>
    Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
    88a10df5