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:
parent
ee860b3bf5
commit
aad85050d7
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue