instead of a panic, fail with a specific error if there is no entry to boot

This commit is contained in:
alex committed 2025-10-19 02:25:55 -07:00
1 parent 1bba345dc2
commit f5f431458c
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -96,9 +96,9 @@ fn main() -> Result<()> {
phase(context.clone(), &config.phases.late).context("unable to execute late phase")?;
let index = 1;
let (context, entry) = &final_entries[index - 1];
let Some((context, entry)) = final_entries.first() else {
bail!("no entries found");
};
for action in &entry.actions {
let action = context.stamp(action);