Merge pull request #396 from pulumi/includeKey

Include the actual key that we were unable to find on the error.
This commit is contained in:
CyrusNajmabadi 2017-10-05 14:11:30 -07:00 committed by GitHub
commit b6f5d75ac0

View file

@ -162,7 +162,7 @@ class ConfigTypeError extends RunError {
* ConfigMissingError is used when a configuration value is completely missing.
*/
class ConfigMissingError extends RunError {
constructor(key: string) {
constructor(public key: string) {
super(
`Missing required configuration variable '${key}'\n` +
`\tplease set a value using the command \`pulumi config ${key} <value>\``