summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2010-06-09 14:49:05 +0100
committerSimon MacMullen <simon@rabbitmq.com>2010-06-09 14:49:05 +0100
commitcb62e2ca3edf74c81e4dd9e1b31b56a5ec1a56a7 (patch)
tree79bf0979d1c0714dd5c6fd31378edcc85b2cc3d3
parent76dacbbe97589bece750a63a8596852079cc7ac0 (diff)
downloadrabbitmq-server-git-cb62e2ca3edf74c81e4dd9e1b31b56a5ec1a56a7.tar.gz
Use the error code as specified by 0-9-1.
-rw-r--r--src/rabbit_channel.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index f355bef314..21595f822b 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -826,14 +826,14 @@ handle_method(#'tx.select'{}, _, State) ->
handle_method(#'tx.commit'{}, _, #ch{transaction_id = none}) ->
rabbit_misc:protocol_error(
- not_allowed, "channel is not transactional", []);
+ precondition_failed, "channel is not transactional", []);
handle_method(#'tx.commit'{}, _, State) ->
{reply, #'tx.commit_ok'{}, internal_commit(State)};
handle_method(#'tx.rollback'{}, _, #ch{transaction_id = none}) ->
rabbit_misc:protocol_error(
- not_allowed, "channel is not transactional", []);
+ precondition_failed, "channel is not transactional", []);
handle_method(#'tx.rollback'{}, _, State) ->
{reply, #'tx.rollback_ok'{}, internal_rollback(State)};