Skip to content

Commit

Permalink
bundle.bbclass: more helpful error message for 'file' image type
Browse files Browse the repository at this point in the history
We know what's missing, thus let the user know what to do, too.

Signed-off-by: Enrico Jörns <[email protected]>
  • Loading branch information
ejoerns committed Nov 15, 2024
1 parent 4b71b6f commit 0400404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes-recipe/bundle.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def write_manifest(d):
elif imgtype == 'file':
imgsource = slotflags.get('file')
if not imgsource:
bb.fatal('Unknown file for slot: %s' % slot)
bb.fatal('Image type "file" requires [file] varflag to be set for slot %s' % slot)
imgname = "%s.%s" % (imgsource, "img")
else:
bb.fatal('Unknown image type: %s' % imgtype)
Expand Down

0 comments on commit 0400404

Please sign in to comment.