summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2010-07-28 12:59:07 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2010-07-28 12:59:07 +0100
commitbd1e178fa7dbba63560848348ba096187f2bdb42 (patch)
tree25e8d45886dc197ceeb1b0deb71b883a6ec38b43 /src
parentb4e27ac400855bf0b88927958b70844c63137b0e (diff)
downloadrabbitmq-server-git-bd1e178fa7dbba63560848348ba096187f2bdb42.tar.gz
issue correct error for basic.ack with unknown delivery tag
as per the 0-9-1 spec
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_channel.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index c4db3ace73..dafc3075ac 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -967,7 +967,7 @@ collect_acks(ToAcc, PrefixAcc, Q, DeliveryTag, Multiple) ->
end;
{empty, _} ->
rabbit_misc:protocol_error(
- not_found, "unknown delivery tag ~w", [DeliveryTag])
+ precondition_failed, "unknown delivery tag ~w", [DeliveryTag])
end.
add_tx_participants(MoreP, State = #ch{tx_participants = Participants}) ->