Skip to content

Commit c41bb8e

Browse files
committed
better msg
1 parent bf42af1 commit c41bb8e

File tree

1 file changed

+7
-0
lines changed
  • crates/compilers/src/resolver

1 file changed

+7
-0
lines changed

crates/compilers/src/resolver/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,13 @@ impl<L: Language, D: ParsedSource<Language = L>> Graph<D> {
727727
all_profiles.retain(|(_, (_, settings))| settings.satisfies_restrictions(&**req));
728728
}
729729

730+
if all_profiles.is_empty() {
731+
let f = utils::source_name(&failed_node.path, &self.root).display();
732+
return Err(
733+
format!("Missing profile satisfying settings restrictions for {f}").to_string(),
734+
);
735+
}
736+
730737
// iterate over all the nodes once again and find the one incompatible
731738
for node in &nodes {
732739
if let Some(req) = project.restrictions.get(&self.node(*node).path) {

0 commit comments

Comments
 (0)