Skip to content

Commit

Permalink
fix: no information when we see error about unlocked packages
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 committed Sep 17, 2023
1 parent 99b825e commit 2814626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vpm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1489,7 +1489,7 @@ impl UnityProject {
.into_iter()
.map(|(pkg_name, ranges)| {
env.find_package_by_name(pkg_name, VersionSelector::Ranges(&ranges))
.expect("some dependencies of unlocked package not found")
.unwrap_or_else(|| panic!("some dependencies of unlocked package not found: {pkg_name}"))
})
.collect::<Vec<_>>();

Expand Down

0 comments on commit 2814626

Please sign in to comment.