From 31b29e9f83deff3de5f6b579c191489232926951 Mon Sep 17 00:00:00 2001 From: konstin Date: Wed, 25 Oct 2023 11:29:47 +0200 Subject: [PATCH] feat: more verbose debug assert --- src/internal/partial_solution.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/internal/partial_solution.rs b/src/internal/partial_solution.rs index 1b683b9d..c2d88bed 100644 --- a/src/internal/partial_solution.rs +++ b/src/internal/partial_solution.rs @@ -141,7 +141,13 @@ impl PartialSolution { AssignmentsIntersection::Decision(_) => panic!("Already existing decision"), // Cannot be called if the versions is not contained in the terms intersection. AssignmentsIntersection::Derivations(term) => { - debug_assert!(term.contains(&version)) + debug_assert!( + term.contains(&version), + "{}: {} was expected to be contained in {}", + package, + version, + term, + ) } }, }