Skip to content
This repository
Browse code

Use ArgumentError vs. RuntimeError, which is more precise.

  • Loading branch information...
commit 9208879d6e3824dda5cf4cdf0d616e6ed5d3240e 1 parent 9f57ee5
Mark Dodwell authored
2  actionmailer/lib/action_mailer/collector.rb
@@ -15,7 +15,7 @@ def initialize(context, &block)
15 15
 
16 16
     def any(*args, &block)
17 17
       options = args.extract_options!
18  
-      raise "You have to supply at least one format" if args.empty?
  18
+      raise ArgumentError, "You have to supply at least one format" if args.empty?
19 19
       args.each { |type| send(type, options.dup, &block) }
20 20
     end
21 21
     alias :all :any

0 notes on commit 9208879

Please sign in to comment.
Something went wrong with that request. Please try again.