wic: raise WicError instead of calling logger.error

Replaced forgotten calls of logger.error with raising
WicError exception. Otherwise errors will be ignored.

(From OE-Core rev: 7a5156092699593903a4bedb4cb23cc6e42ea62e)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ed Bartosh 2017-02-21 17:12:35 +02:00 committed by Richard Purdie
parent ee860b3bf5
commit aad85050d7
2 changed files with 3 additions and 3 deletions

View File

@ -96,8 +96,8 @@ class BootimgPcbiosPlugin(SourcePlugin):
logger.debug("Using custom configuration file %s "
"for syslinux.cfg", bootloader.configfile)
else:
logger.error("configfile is specified but failed to "
"get it from %s.", bootloader.configfile)
raise WicError("configfile is specified but failed to "
"get it from %s." % bootloader.configfile)
if not custom_cfg:
# Create syslinux configuration using parameters from wks file

View File

@ -136,7 +136,7 @@ def exec_native_cmd(cmd_and_args, native_sysroot, catch=3, pseudo=""):
else:
msg += "Wic failed to find a recipe to build native %s. Please "\
"file a bug against wic.\n" % prog
logger.error(msg)
raise WicError(msg)
return ret, out