aboutsummaryrefslogtreecommitdiff
path: root/src/crates
diff options
context:
space:
mode:
Diffstat (limited to 'src/crates')
-rw-r--r--src/crates/candelabra/src/candidates.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/crates/candelabra/src/candidates.rs b/src/crates/candelabra/src/candidates.rs
index 0d76862..e8693e0 100644
--- a/src/crates/candelabra/src/candidates.rs
+++ b/src/crates/candelabra/src/candidates.rs
@@ -2,7 +2,7 @@
use std::{collections::HashMap, fs::metadata, time::SystemTime};
-use anyhow::{Context, Result};
+use anyhow::{bail, Context, Result};
use camino::{Utf8Path, Utf8PathBuf};
use log::{debug, warn};
use primrose::ContainerSelector;
@@ -100,6 +100,10 @@ impl State {
.map(|(k, v)| (k.to_string(), v))
.collect();
+ if candidates.iter().any(|(_, impls)| impls.is_empty()) {
+ bail!("Could not find candidates for all container types");
+ }
+
let mod_time = metadata(path)?.modified()?;
if let Err(e) = self.candidates.store.put(
path,