Skip to content

Commit 9640aab

Browse files
committed
add error if source file is not found
Signed-off-by: Zen <[email protected]>
1 parent e1197ab commit 9640aab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ugrd/base/cpio.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ def build_gen_init_cpio(self):
1212
if source_file.exists():
1313
self.logger.info("Building gen_init_cpio at: %s" % source_file)
1414
return self._run(['gcc', '-o', self.config_dict['gen_init_cpio_path'], source_file])
15+
else:
16+
self.logger.warning("gen_init_cpio source file not found at: %s" % source_file)
1517

1618

1719
def pack_cpio(self):

0 commit comments

Comments
 (0)