show env variable keys if failing to load

This commit is contained in:
Gleb Bahmutov
2017-10-30 12:48:59 -04:00
parent b7ff236060
commit 03126cf6f7

View File

@@ -39,6 +39,8 @@ getS3Credentials = () ->
console.error('Using @cypress/env-or-json-file module')
console.error('and filename', key)
console.error('which is environment variable', filenameToShellVariable(key))
console.error('available environment variable keys')
console.error(Object.keys(process.env))
throw new Error('AWS config not found')
la(check.unemptyString(config.bucket), 'missing AWS config bucket')