From 9578503e4d241a2ca0d5aafef641f2fedba27066 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Tue, 29 Aug 2023 21:49:12 +0200 Subject: [PATCH] fix: [compose-core] use ``return 1`` instead of ``exit 1`` in ``_get_container_relation()`` --- bin/compose-core | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/compose-core b/bin/compose-core index 321ec4c..97ea689 100755 --- a/bin/compose-core +++ b/bin/compose-core @@ -3034,8 +3034,9 @@ _get_container_relation() { } done < <(_get_charm_metadata_uses "$metadata") if [ -z "$found" ]; then - die "Charm $DARKPINK$charm$NORMAL is a subordinate but does not have any required relation declaration with" \ + err "Charm $DARKPINK$charm$NORMAL is a subordinate but does not have any required relation declaration with" \ "${WHITE}scope${NORMAL} set to 'container'." + return 1 fi printf "%s" "$found" }