[oe-commits] [openembedded-core] 18/20: lib/buildstats: Improve error message

git at git.openembedded.org git at git.openembedded.org
Fri Feb 15 16:08:54 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 7740ca08b14f4c18ccaf15715bf5cfe0b4f14afe
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Fri Feb 15 11:54:09 2019 +0000

    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.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 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 d9aadf3..f7db3ea 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)
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list