about summary refs log tree commit homepage
path: root/lib/yahns/config.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/yahns/config.rb')
-rw-r--r--lib/yahns/config.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/yahns/config.rb b/lib/yahns/config.rb
index 27c085f..c4c1b41 100644
--- a/lib/yahns/config.rb
+++ b/lib/yahns/config.rb
@@ -244,7 +244,8 @@ class Yahns::Config # :nodoc:
                 "queues defined with a block inside app must not have names"
         name = @block
       else
-        name = args[0] or raise "queue must be given a name if no block given"
+        name = args[0] or
+          raise ArgumentError, "queue must be given a name if no block given"
       end
     else
       name = args[0] || :default