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

misleading error when specified target is not in config file and config file doesn't have a project scope #34

Open
rick opened this issue Jul 16, 2012 · 0 comments

Comments

@rick
Copy link
Member

rick commented Jul 16, 2012

To reproduce:

Given a config like this: https://gist.github.com/3123721 with no outer project scoping,
Run a setup or deploy specifying a target not in the file. E.g., wd setup --to=staging
The filter to wrap with a project scope fails, but the error message sucks:

Class:0x458dc649: undefined method `[]' for nil:NilClass

         override_project_name! at /Users/grant/.rvm/gems/jruby-1.6.7.2/gems/whiskey_disk-0.6.24/lib/whiskey_disk/config/filters/project_scope_filter.rb:24
                      filter at /Users/grant/.rvm/gems/jruby-1.6.7.2/gems/whiskey_disk-0.6.24/lib/whiskey_disk/config/filters/project_scope_filter.rb:29
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