Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unfriendly error when template file is missing #129

Open
simpsora opened this issue Sep 21, 2016 · 0 comments
Open

Unfriendly error when template file is missing #129

simpsora opened this issue Sep 21, 2016 · 0 comments

Comments

@simpsora
Copy link
Contributor

I had a typo in the filename of my template file in stack_master.yml, which meant that it referred to a nonexistent file (left off the .rb extension):

    elb-test:
      template: elb_test

The error message was quite confusing, however:

$ stack_master apply us-east-1 elb-test
Executing apply on elb-test in us-east-1
StackMaster::TemplateCompiler::TemplateCompilationFailed Failed to compile /Users/.../templates/elb_test.
 Caused by: KeyError key not found: :""

Note the trailing . on the template filename (missing from my definition), and the resulting KeyError with a weird value (:"").

Ideally it would raise a more descriptive error here.

$ stack_master --version
StackMaster 0.7.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants