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

Using unknown parameter resolver results in unhelpful error text #253

Open
viraptor opened this issue Oct 10, 2018 · 0 comments
Open

Using unknown parameter resolver results in unhelpful error text #253

viraptor opened this issue Oct 10, 2018 · 0 comments

Comments

@viraptor
Copy link
Contributor

viraptor commented Oct 10, 2018

With parameters file:

foo_param:
  stack: some_stack/output
Executing diff on market-csp-collector in us-east-1
error: stack. Use --trace to view backtrace

With stack trace:

/opt/boxen/rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/stack_master-1.8.0/lib/stack_master/parameter_resolver.rb:34:in `rescue in require_parameter_resolver': stack (StackMaster::ParameterResolver::ResolverNotFound)
	from /opt/boxen/rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/stack_master-1.8.0/lib/stack_master/parameter_resolver.rb:30:in `require_parameter_resolver'
	from /opt/boxen/rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/stack_master-1.8.0/lib/stack_master/parameter_resolver.rb:45:in `rescue in load_parameter_resolver'
	from /opt/boxen/rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/stack_master-1.8.0/lib/stack_master/parameter_resolver.rb:40:in `load_parameter_resolver'

Better error would be:

parameter resolver ${foo} not found (requested in parameters/foo.yml)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant