From 1ab663e912b33959c27b836554ff66a09b7aee1c Mon Sep 17 00:00:00 2001 From: Justin Santa Barbara Date: Mon, 5 Oct 2015 09:05:17 -0400 Subject: [PATCH] AWS: Log the region when we don't recognize it. This will help users see when they've typoed the region name (#14278) --- cluster/aws/jessie/util.sh | 2 +- cluster/aws/util.sh | 2 +- cluster/aws/vivid/util.sh | 2 +- cluster/aws/wheezy/util.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cluster/aws/jessie/util.sh b/cluster/aws/jessie/util.sh index acdf61c21b5..3af1afd7268 100644 --- a/cluster/aws/jessie/util.sh +++ b/cluster/aws/jessie/util.sh @@ -74,7 +74,7 @@ function detect-jessie-image () { ;; *) - echo "Please specify AWS_IMAGE directly (region not recognized)" + echo "Please specify AWS_IMAGE directly (region ${AWS_REGION} not recognized)" exit 1 esac fi diff --git a/cluster/aws/util.sh b/cluster/aws/util.sh index 16a1a5cd7d4..52b7ba0455c 100755 --- a/cluster/aws/util.sh +++ b/cluster/aws/util.sh @@ -306,7 +306,7 @@ function detect-trusty-image () { ;; *) - echo "Please specify AWS_IMAGE directly (region not recognized)" + echo "Please specify AWS_IMAGE directly (region ${AWS_REGION} not recognized)" exit 1 esac fi diff --git a/cluster/aws/vivid/util.sh b/cluster/aws/vivid/util.sh index 114903f66f3..4aa8a34abc0 100644 --- a/cluster/aws/vivid/util.sh +++ b/cluster/aws/vivid/util.sh @@ -75,7 +75,7 @@ function detect-vivid-image () { ;; *) - echo "Please specify AWS_IMAGE directly (region not recognized)" + echo "Please specify AWS_IMAGE directly (region ${AWS_REGION} not recognized)" exit 1 esac fi diff --git a/cluster/aws/wheezy/util.sh b/cluster/aws/wheezy/util.sh index b5a61331026..8a72ae4dce7 100644 --- a/cluster/aws/wheezy/util.sh +++ b/cluster/aws/wheezy/util.sh @@ -74,7 +74,7 @@ function detect-wheezy-image () { ;; *) - echo "Please specify AWS_IMAGE directly (region not recognized)" + echo "Please specify AWS_IMAGE directly (region ${AWS_REGION} not recognized)" exit 1 esac fi