Project

General

Profile

Actions

Bug #3854

closed

Hammer fails with exception when it tries to load a module that is not installed

Added by Tomáš Strachota about 11 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Hammer core
Target version:
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

When a module that is not installed is listed in hammer's config, hammer fails with an exception:

hammer
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- hammer_cli_foreman (LoadError)
    from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
    from /usr/bin/hammer:52
    from /usr/bin/hammer:50:in `each'
    from /usr/bin/hammer:50

It should rather print a message to stderr, log the error and continue loading other modules.

Actions

Also available in: Atom PDF