diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2021-06-29 09:19:22 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@atos.net> | 2021-09-16 12:32:20 +0200 |
commit | c6917d3e1adac99ecce05b3c7fe6592b551dc410 (patch) | |
tree | d92b027353e5496ae9c001e5c2826da5fc04e74b | |
parent | 3c8fb1b2bf1c5597a10aa65b28d98de6c6d7cb01 (diff) |
Add more sensible error message
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
-rw-r--r-- | src/package/dag.rs | 4 |
1 files 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 |