]> code.ossystems Code Review - openembedded-core.git/commitdiff
wic: make error message more informative
authorEd Bartosh <ed.bartosh@linux.intel.com>
Tue, 7 Apr 2015 09:03:06 +0000 (12:03 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 9 Apr 2015 18:48:02 +0000 (19:48 +0100)
Included name of the missing program into the error message produced
by exec_native_cmd when program is not found.

Removed mentioning of the host programs as this API is not running
them anymore.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/utils/oe/misc.py

index 5facbe0b700a6204814f46033d92be97d8e0523b..7769f3ff728cc512bb47f82d4a5efb04501223df 100644 (file)
@@ -92,9 +92,9 @@ def exec_native_cmd(cmd_and_args, native_sysroot, catch = 3):
     rc, out = __exec_cmd(native_cmd_and_args, True, catch)
 
     if rc == 127: # shell command-not-found
-        msger.error("A native (host) program required to build the image "
+        msger.error("A native program %s required to build the image "
                     "was not found (see details above). Please make sure "
-                    "it's installed and try again.")
+                    "it's installed and try again." % args[0])
 
     return (rc, out)