From a7415f95e30b84fb307d58876d9a70149d73812c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 30 Oct 2013 01:50:18 +0000 Subject: config: raise ArgumentError for consistency The rest of the config handling spews ArgumentError when a user sets something bad... --- lib/yahns/config.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/yahns/config.rb') 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 -- cgit v1.2.3-24-ge0c7