diff options
author | Eric Wong <e@80x24.org> | 2013-10-30 01:50:18 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-10-30 07:01:02 +0000 |
commit | a7415f95e30b84fb307d58876d9a70149d73812c (patch) | |
tree | 3f5264753806f24b8a191a9914757a8e9a0a461f /lib/yahns/config.rb | |
parent | 61f325506c699292bf6ec7982ab824bc375ca03f (diff) | |
download | yahns-a7415f95e30b84fb307d58876d9a70149d73812c.tar.gz |
The rest of the config handling spews ArgumentError when a user sets something bad...
Diffstat (limited to 'lib/yahns/config.rb')
-rw-r--r-- | lib/yahns/config.rb | 3 |
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 |