abscissa_core/application/
exit.rsuse super::{Application, Component};
use std::{error::Error, process};
pub fn fatal_error(app: &impl Application, err: &dyn Error) -> ! {
status_err!("{} fatal error: {}", app.name(), err);
process::exit(1)
}
pub(crate) fn bad_component_order<A>(a: &dyn Component<A>, b: &dyn Component<A>) -> !
where
A: Application,
{
eprintln!("*** error(abscissa): couldn't determine startup order for components:");
eprintln!(" - {:?}", a);
eprintln!(" - {:?}", b);
process::exit(1)
}