Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Smith <[email protected]>
  • Loading branch information
tas50 committed Jul 20, 2021
1 parent 956a761 commit 864c2a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/supermarket/app/lib/supermarket/s3_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 & environment.keys}. You must provide #{REQUIRED_S3_VARS} to configure cookbook storage in an S3 bucket."
end
return true if all_s3_settings

Expand Down

0 comments on commit 864c2a2

Please sign in to comment.