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 over 10 years ago. Updated over 5 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 #1

Updated by Anonymous about 10 years ago

  • Target version set to 1.9.2
Actions #2

Updated by Tomáš Strachota about 10 years ago

  • Status changed from New to Assigned
  • Assignee set to Tomáš Strachota
Actions #3

Updated by Tomáš Strachota about 10 years ago

  • Status changed from Assigned to Ready For Testing
Actions #4

Updated by Anonymous about 10 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Applied in changeset foreman:hammer-cli|commit:cb6240964c0b3c106aefa27ea72280980c270d60.

Actions

Also available in: Atom PDF