Browse Source

fix: [compose-core] display better help upon missing build or image parameter !minor

master
Valentin Lab 1 week ago
parent
commit
2c78629e42
  1. 3
      bin/compose-core

3
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

Loading…
Cancel
Save