Skip to contentSkip to conversation

sanity.bbclass: fix logging of an error

morty Joshua Lock 1 participant 1 message May 10, 2017

lore
Share & tools
lore
#0 lore raw

From: Markus Lehtonen <[email protected]>

Fixes a crash in exception handler. All bb logging functions need an string instances as arguments.

(From OE-Core master rev: 62b521722ae72bc87d599719b400dab771154fa7)

---
 meta/classes/sanity.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/sanity.bbclass +1 -1
index 7682ffb..9db3f1d 100644
@@ -565,7 +565,7 @@ def sanity_check_conffiles(d):
             try:
                 bb.build.exec_func(func, d, pythonexception=True)
             except NotImplementedError as e:
-                bb.fatal(e)
+                bb.fatal(str(e))
             d.setVar("BB_INVALIDCONF", True)
 
 def sanity_handle_abichanges(status, d):
Signature · 1 line
2.9.3