From df3fe04c53bc5cb2344d087e2f95253b2c17826f Mon Sep 17 00:00:00 2001 From: Vincent Legoll Date: Wed, 29 Apr 2026 17:23:14 +0200 Subject: [PATCH] Make `owut list` error message clearer in case no relevant image is found This happened for a board that has no legitimate 'sysupgrade' image, probably not built any more due to size constraints. This new error message just explain what the `owut` problem is. Signed-off-by: Vincent Legoll --- files/owut | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/owut b/files/owut index 24c9489..4df125d 100755 --- a/files/owut +++ b/files/owut @@ -1408,6 +1408,9 @@ function complete_build_info(profile, board) // First, only allow legitimate "sysupgrade" types through. let images = filter(profile.images, (img) => img.filesystem && img.filesystem != "initramfs" && ! match(img.type, /factory/)); + if (length(images) == 0) { + L.die("Cannot find any legitimate 'sysupgrade' image (not 'initramfs' nor 'factory') for that board on the download server.\n"); + } let valid_fstypes = uniq(sort(map(images, (img) => img.filesystem))); if (! (build.to.fstype in valid_fstypes)) {