Permalink
Browse files

Let's be purists and throw a "LoadError" when notifier is not found.

  • Loading branch information...
1 parent b6e8d66 commit 802ba8440a3635a595e07a55b7bf8049ec985f34 @karmi committed Feb 2, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 pushr.rb
View
@@ -162,7 +162,7 @@ def load_notifiers
begin
require File.join( File.dirname(__FILE__), @notifiers_path, notifier_name )
rescue Exception => e
- raise "Notifier #{notifier_name} not found! (#{e.message})"
+ raise LoadError, "Notifier #{notifier_name} not found! (#{e.message})"
end
end
@notifiers << Pushr::Notifier::const_get( notifier_name.to_s.camelize ).new(notifier_config)

0 comments on commit 802ba84

Please sign in to comment.