[oe-commits] Ed Bartosh : wic: make error message more informative

git at git.openembedded.org git at git.openembedded.org
Thu Apr 9 10:29:16 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: 50daa2e5a645f830929c134c361c6916ac87e3d5
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=50daa2e5a645f830929c134c361c6916ac87e3d5

Author: Ed Bartosh <ed.bartosh at linux.intel.com>
Date:   Tue Apr  7 12:03:06 2015 +0300

wic: make error message more informative

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 at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 scripts/lib/wic/utils/oe/misc.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/lib/wic/utils/oe/misc.py b/scripts/lib/wic/utils/oe/misc.py
index 5facbe0..7769f3f 100644
--- a/scripts/lib/wic/utils/oe/misc.py
+++ b/scripts/lib/wic/utils/oe/misc.py
@@ -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)
 



More information about the Openembedded-commits mailing list