From 2c78629e42466565b9f28af19292122be33de090 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Tue, 24 Dec 2024 11:28:35 +0100 Subject: [PATCH] fix: [compose-core] display better help upon missing build or image parameter !minor --- bin/compose-core | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/compose-core b/bin/compose-core index 2aff096..acc8372 100755 --- a/bin/compose-core +++ b/bin/compose-core @@ -1846,7 +1846,8 @@ service_ensure_image_ready() { if ! src=$(e "$service_def" | shyaml get-value build 2>/dev/null); then err "Service $DARKYELLOW$service$NORMAL has no ${WHITE}image${NORMAL} nor ${WHITE}build${NORMAL} parameter." - echo "$service_def" >&2 + echo " Current service definition:" >&2 + e "$service_def" | prefix " ${GRAY}|${NORMAL} " >&2 return 1 fi