From f18b9bf5d4e1d877c3d8fe824819e7e631c3db28 Mon Sep 17 00:00:00 2001 From: Alex Tokarev Date: Sat, 14 Nov 2020 22:23:19 +0300 Subject: [PATCH] refactor: make returned error more specific --- src/solver.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/solver.rs b/src/solver.rs index 5d027d22..41eb9549 100644 --- a/src/solver.rs +++ b/src/solver.rs @@ -127,7 +127,7 @@ pub fn resolve( .term_intersection_for_package(&next) .contains(&v) { - return Err(PubGrubError::Failure( + return Err(PubGrubError::ErrorMakingDecision( "make_decision picked an incompatible version".into(), )); }