summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2011-08-22 11:44:31 +0100
committerMatthew Sackman <matthew@rabbitmq.com>2011-08-22 11:44:31 +0100
commit8525ce38ade0a2442bd93552d9c3a8f1f6161621 (patch)
tree963978c457d0ecd241631720518b619413a037fe
parentdc32d1fd4bdf67a3c4982e82545f0bd6ab56e299 (diff)
downloadrabbitmq-server-git-8525ce38ade0a2442bd93552d9c3a8f1f6161621.tar.gz
AMQP error reasons are shortstrs. Take advantage of ~p and limit to the shortstr length.
-rw-r--r--src/rabbit_amqqueue.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_amqqueue.erl b/src/rabbit_amqqueue.erl
index 88ff26cc75..9407f4a2af 100644
--- a/src/rabbit_amqqueue.erl
+++ b/src/rabbit_amqqueue.erl
@@ -320,7 +320,7 @@ check_declare_arguments(QueueName, Args) ->
ok -> ok;
{error, Error} -> rabbit_misc:protocol_error(
precondition_failed,
- "invalid arg '~s' for ~s: ~w",
+ "invalid arg '~s' for ~s: ~256p",
[Key, rabbit_misc:rs(QueueName), Error])
end || {Key, Fun} <-
[{<<"x-expires">>, fun check_integer_argument/2},