Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use ArgumentError vs. RuntimeError, which is more precise.

  • Loading branch information...
commit 9208879d6e3824dda5cf4cdf0d616e6ed5d3240e 1 parent 9f57ee5
@mkdynamic mkdynamic authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionmailer/lib/action_mailer/collector.rb
View
2  actionmailer/lib/action_mailer/collector.rb
@@ -15,7 +15,7 @@ def initialize(context, &block)
def any(*args, &block)
options = args.extract_options!
- raise "You have to supply at least one format" if args.empty?
+ raise ArgumentError, "You have to supply at least one format" if args.empty?
args.each { |type| send(type, options.dup, &block) }
end
alias :all :any
Please sign in to comment.
Something went wrong with that request. Please try again.