]> code.ossystems Code Review - openembedded-core.git/commitdiff
lib/buildstats: Improve error message
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 15 Feb 2019 11:54:09 +0000 (11:54 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 Feb 2019 22:25:08 +0000 (22:25 +0000)
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 <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
scripts/lib/buildstats.py

index d9aadf3cb80ac0f1700d00242c3a7ee13aeffba4..f7db3eaf92e6ba65208e7d6411a2173f9eb4e459 100644 (file)
@@ -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)