]> code.ossystems Code Review - openembedded-core.git/commitdiff
sanity.bbclass: fix logging of an error
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 10 Nov 2016 14:57:29 +0000 (16:57 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 15 Nov 2016 15:18:50 +0000 (15:18 +0000)
Fixes a crash in exception handler. All bb logging functions need an
string instances as arguments.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/sanity.bbclass

index 7682ffbb8c18440bd211a6f0a7cce38cafd85ea4..9db3f1d5f3413e4774615ef1b93c8c4d812f57ab 100644 (file)
@@ -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):