Error on unknown node #1

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

2 participants

@kschiess

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

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

@floere floere closed this Jul 17, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment