From 04544535b7458c5d361e518dd943ed1cede2a2c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Taavi=20V=C3=A4=C3=A4n=C3=A4nen?= Date: Thu, 6 Jul 2023 13:38:51 +0300 Subject: [PATCH] images/control: Clarify error messages Changes the error message for trying to run a non-existent architecture to mention that it's specifically the architecture that's missing and not the specific image (which is checked at the very start of the file). The error message for a non-existent image is clarified a bit too, to make it more clear what's wrong in the manifest, instead of how the runner is detecting that. --- images/control | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/images/control b/images/control index 4091ebd..b468e37 100755 --- a/images/control +++ b/images/control @@ -13,7 +13,7 @@ shift 2 if [ ! -d $self/$base ] then - printf "Not a directory '%s'\n" "$base" >&2 + printf "Image '%s' does not exist\n" "$base" >&2 exit 1 fi @@ -135,7 +135,7 @@ cmd_boot() { fi if [ ! -e "$self/$base/$arch/root.img.qcow2" ] then - printf "Unknown base image '%s'\n" "$base" >&2 + printf "Image '%s' is not available for arch '%s'\n" "$base" "$arch" >&2 exit 1 fi -- 2.38.5