From 047fd7cf6fc2a3d5d170241f5cc5b61b8d9d8522 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 15 Feb 2019 11:54:09 +0000 Subject: lib/buildstats: Improve error message Just stating the recipe counts are different isn't helpful, showing the differences makes it much easier to understand what changed. (From OE-Core rev: 1d84b782e3af6f0e6922d72895c905877cc33739) Signed-off-by: Richard Purdie Signed-off-by: Armin Kuster --- scripts/lib/buildstats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/buildstats.py b/scripts/lib/buildstats.py index d9aadf3cb8..f7db3eaf92 100644 --- a/scripts/lib/buildstats.py +++ b/scripts/lib/buildstats.py @@ -263,7 +263,7 @@ class BuildStats(dict): """Aggregate other buildstats into this""" if set(self.keys()) != set(buildstats.keys()): raise ValueError("Refusing to aggregate buildstats, set of " - "recipes is different") + "recipes is different: %s" % (set(self.keys()) ^ set(buildstats.keys()))) for pkg, data in buildstats.items(): self[pkg].aggregate(data) -- cgit 1.2.3-korg