diff --git a/src/tui.rs b/src/tui.rs index 37b2231..da59d90 100644 --- a/src/tui.rs +++ b/src/tui.rs @@ -125,6 +125,10 @@ where pub(crate) fn prompt_confirmation_menu( confirmations: Vec, ) -> anyhow::Result<(Vec, Vec)> { + if confirmations.len() == 0 { + bail!("no confirmations") + } + let mut to_accept_idx: HashSet = HashSet::new(); let mut to_deny_idx: HashSet = HashSet::new();