diff options
author | Emile Joubert <emile@rabbitmq.com> | 2012-12-18 17:27:44 +0000 |
---|---|---|
committer | Emile Joubert <emile@rabbitmq.com> | 2012-12-18 17:27:44 +0000 |
commit | 726580efafc8fdaf70a409a17f89e0247a595891 (patch) | |
tree | 847fe38cb74f45390da3dafa13005d449dd931ea | |
parent | 4b9cc57601b69ad1e3a6f7e9649382dbb1cd8ef3 (diff) | |
download | rabbitmq-server-726580efafc8fdaf70a409a17f89e0247a595891.tar.gz |
Maxdepth argument checking
-rw-r--r-- | src/rabbit_amqqueue.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rabbit_amqqueue.erl b/src/rabbit_amqqueue.erl index 9c089973..51f5bfea 100644 --- a/src/rabbit_amqqueue.erl +++ b/src/rabbit_amqqueue.erl @@ -413,8 +413,9 @@ check_int_arg({Type, _}, _) -> check_maxdepth_arg({Type, Val}, Args) -> case check_int_arg({Type, Val}, Args) of - ok when Val =< 0 -> {error, {value_non_positive, Val}}; - X -> X + ok when Val > 0 -> ok; + ok -> {error, {value_not_positive, Val}}; + Error -> Error end. check_expires_arg({Type, Val}, Args) -> |