Skip to content

Commit

Permalink
refactor: make returned error more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksator authored and Eh2406 committed Nov 15, 2020
1 parent bb86428 commit f18b9bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/solver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ pub fn resolve<P: Package, V: Version>(
.term_intersection_for_package(&next)
.contains(&v)
{
return Err(PubGrubError::Failure(
return Err(PubGrubError::ErrorMakingDecision(
"make_decision picked an incompatible version".into(),
));
}
Expand Down

0 comments on commit f18b9bf

Please sign in to comment.