From 61d2595c76b7c1d24effc00428ef4e1829c9490e Mon Sep 17 00:00:00 2001 From: Michael Bridgen Date: Mon, 17 Nov 2014 16:28:11 +0000 Subject: [PATCH] Better phrasing for http_call error messages --- weave | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/weave b/weave index 9b46a060..3a33d506 100755 --- a/weave +++ b/weave @@ -271,19 +271,19 @@ detach() { http_call() { http_verb="$1" if ! status=$(docker inspect --format='{{ .State.Running }} {{ .NetworkSettings.IPAddress }}' $2 2>/dev/null); then - echo "$2 is not a container; have you launched it?" >&2 + echo "$2 container is not present; have you launched it?" >&2 exit 1 fi case "$status" in "true ") - echo "$2 has no IP address; is Docker networking enabled?" >&2 + echo "$2 container has no IP address; is Docker networking enabled?" >&2 exit 1 ;; true*) ip=$(echo $status | sed -e 's/true //') ;; *) - echo "$2 is not running." >&2 + echo "$2 container is not running." >&2 exit 1 ;; esac