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

Error on unknown node #1

Closed
kschiess opened this issue Jul 16, 2012 · 1 comment
Closed

Error on unknown node #1

kschiess opened this issue Jul 16, 2012 · 1 comment

Comments

@kschiess
Copy link
Contributor

The error message for node names that cannot be found is rather cryptic:

   [deletia]/.rvm/gems/ruby-1.9.3-p194/gems/bocuse-0.0.1/bin/bocuse:15:in `compile': undefined method `to_h' for nil:NilClass (NoMethodError)
    from [deletia]/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.15.3/lib/thor/task.rb:27:in `run'
    from [deletia]/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.15.3/lib/thor/invocation.rb:120:in `invoke_task'
    from [deletia]/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.15.3/lib/thor.rb:275:in `dispatch'
    from [deletia]/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.15.3/lib/thor/base.rb:425:in `start'
    from [deletia]/.rvm/gems/ruby-1.9.3-p194/gems/bocuse-0.0.1/bin/bocuse:19:in `<top (required)>'
    from [deletia]/.rvm/gems/ruby-1.9.3-p194/bin/bocuse:19:in `load'
    from [deletia]/.rvm/gems/ruby-1.9.3-p194/bin/bocuse:19:in `<main>'
    from [deletia]/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
    from [deletia]/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>'

It should say:

Cannot find input file for node 'xxx.foo.com'. 

and abort with error code 1.

@floere
Copy link
Contributor

floere commented Jul 17, 2012

Interestingly, Thor aborts with error code 0 on bocuse compile.

@floere floere closed this as completed Jul 17, 2012
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