From c6917d3e1adac99ecce05b3c7fe6592b551dc410 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 29 Jun 2021 09:19:22 +0200 Subject: Add more sensible error message Signed-off-by: Matthias Beyer --- src/package/dag.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/package/dag.rs b/src/package/dag.rs index 5956c60..46c0dc8 100644 --- a/src/package/dag.rs +++ b/src/package/dag.rs @@ -649,8 +649,8 @@ mod tests { assert!(ps.iter().any(|p| *p.version() == pversion("1"))); // Not in the tree: - assert!(!ps.iter().any(|p| *p.name() == pname("b"))); - assert!(!ps.iter().any(|p| *p.version() == pversion("2"))); + assert!(!ps.iter().any(|p| *p.name() == pname("b")), "'b' should not be in tree, but is: {:?}", ps); + assert!(!ps.iter().any(|p| *p.version() == pversion("2")), "'2' should not be in tree, but is: {:?}", ps); } // Test whether the dependency DAG is correctly build if a image is used, but not the one -- cgit v1.2.3