From b2a319d228ef9817b89d38860cf1331ad294388c Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Wed, 4 Dec 2024 16:30:50 +0100 Subject: [PATCH] new: [compose-core] output traceable error when list of services are not available in ``_service:all:relations_cached`` --- bin/compose-core | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/compose-core b/bin/compose-core index 101c737..841dfa3 100755 --- a/bin/compose-core +++ b/bin/compose-core @@ -3215,7 +3215,10 @@ get_all_compose_yml_service() { ## Outputs all relations array. _service:all:relations_cached() { local services service E - services=($(compose:yml:root:services)) || return 1 + services=($(compose:yml:root:services)) || { + err-d "Failed to get services from compose yml." + return 1 + } get_all_relations "${services[@]}" || return 1 }