fn err_exit()

in aws_secretsmanager_agent/src/main.rs [198:206]


fn err_exit(msg: &str, usage: &str) -> ! {
    if !msg.is_empty() {
        panic!("{msg} !!!"); // Suffix message with !!! so we can distinguish it in tests
    }
    if !usage.is_empty() {
        panic!("#{usage}"); // Preceed usage with # so we can distinguish it in tests.
    }
    panic!("Should not get here");
}