summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/wic/plugins/source/bootimg-pcbios.py4
-rw-r--r--scripts/lib/wic/utils/misc.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/lib/wic/plugins/source/bootimg-pcbios.py b/scripts/lib/wic/plugins/source/bootimg-pcbios.py
index 74c75a054e..bbc9f473e2 100644
--- a/scripts/lib/wic/plugins/source/bootimg-pcbios.py
+++ b/scripts/lib/wic/plugins/source/bootimg-pcbios.py
@@ -96,8 +96,8 @@ class BootimgPcbiosPlugin(SourcePlugin):
96 logger.debug("Using custom configuration file %s " 96 logger.debug("Using custom configuration file %s "
97 "for syslinux.cfg", bootloader.configfile) 97 "for syslinux.cfg", bootloader.configfile)
98 else: 98 else:
99 logger.error("configfile is specified but failed to " 99 raise WicError("configfile is specified but failed to "
100 "get it from %s.", bootloader.configfile) 100 "get it from %s." % bootloader.configfile)
101 101
102 if not custom_cfg: 102 if not custom_cfg:
103 # Create syslinux configuration using parameters from wks file 103 # Create syslinux configuration using parameters from wks file
diff --git a/scripts/lib/wic/utils/misc.py b/scripts/lib/wic/utils/misc.py
index 216ab7b6ce..c941112c63 100644
--- a/scripts/lib/wic/utils/misc.py
+++ b/scripts/lib/wic/utils/misc.py
@@ -136,7 +136,7 @@ def exec_native_cmd(cmd_and_args, native_sysroot, catch=3, pseudo=""):
136 else: 136 else:
137 msg += "Wic failed to find a recipe to build native %s. Please "\ 137 msg += "Wic failed to find a recipe to build native %s. Please "\
138 "file a bug against wic.\n" % prog 138 "file a bug against wic.\n" % prog
139 logger.error(msg) 139 raise WicError(msg)
140 140
141 return ret, out 141 return ret, out
142 142