Actions
Bug #5583
closedHave a more friendly developer error if orgs are not enabled
Description
The current error (below is not very helpful). We could display something more helpful.
/home/dadavis/Projects/katello/lib/katello/plugin.rb:141:in `block in <top (required)>': undefined method `actions' for nil:NilClass (NoMethodError)
from /home/dadavis/Projects/foreman/app/services/foreman/plugin.rb:61:in `instance_eval'
from /home/dadavis/Projects/foreman/app/services/foreman/plugin.rb:61:in `register'
from /home/dadavis/Projects/katello/lib/katello/plugin.rb:1:in `<top (required)>'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/polyglot-0.3.4/lib/polyglot.rb:65:in `require'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/polyglot-0.3.4/lib/polyglot.rb:65:in `require'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `block in require'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:236:in `load_dependency'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require'
from /home/dadavis/Projects/katello/lib/katello/engine.rb:112:in `block in <class:Engine>'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/railties-3.2.17/lib/rails/initializable.rb:30:in `instance_exec'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/railties-3.2.17/lib/rails/initializable.rb:30:in `run'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/railties-3.2.17/lib/rails/initializable.rb:55:in `block in run_initializers'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/railties-3.2.17/lib/rails/initializable.rb:54:in `each'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/railties-3.2.17/lib/rails/initializable.rb:54:in `run_initializers'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/railties-3.2.17/lib/rails/application.rb:136:in `initialize!'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/railties-3.2.17/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /home/dadavis/Projects/foreman/config/environment.rb:5:in `<top (required)>'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/polyglot-0.3.4/lib/polyglot.rb:65:in `require'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/polyglot-0.3.4/lib/polyglot.rb:65:in `require'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `block in require'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:236:in `load_dependency'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require'
from /home/dadavis/Projects/foreman/config.ru:3:in `block in <main>'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
from /home/dadavis/Projects/foreman/config.ru:in `new'
from /home/dadavis/Projects/foreman/config.ru:in `<main>'
Actions