From 999b9c73b80c7acfa27d6590fa3fffed9fe0899e Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Tue, 20 Jul 2021 12:59:44 -0700 Subject: [PATCH] Improve error message Signed-off-by: Tim Smith --- src/supermarket/app/lib/supermarket/s3_config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/supermarket/app/lib/supermarket/s3_config.rb b/src/supermarket/app/lib/supermarket/s3_config.rb index 46f2f99b0f..4717448af1 100644 --- a/src/supermarket/app/lib/supermarket/s3_config.rb +++ b/src/supermarket/app/lib/supermarket/s3_config.rb @@ -17,7 +17,7 @@ def self.use_s3?(environment) all_s3_settings = REQUIRED_S3_VARS.all? { |key| environment[key].present? } if any_s3_settings && !all_s3_settings - raise IncompleteConfig.new "Got some, but not all, of the required S3 configs. Must provide #{REQUIRED_S3_VARS} to configure cookbook storage in an S3 bucket." + raise IncompleteConfig.new "Got some, but not all, of the required S3 configs. You provided: #{REQUIRED_S3_VARS.intersection(environment.keys)}. You must provide #{REQUIRED_S3_VARS} to configure cookbook storage in an S3 bucket." end return true if all_s3_settings