Skip to content

Commit e06da65

Browse files
hairyhummichaelklishin
authored andcommitted
Make error message when refusing to delete non-empty message less radical.
(cherry picked from commit a82bdad)
1 parent 97db801 commit e06da65

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rabbit_amqqueue.erl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -844,13 +844,13 @@ delete(Q, IfUnused, IfEmpty, ActingUser) ->
844844
case IfEmpty of
845845
true ->
846846
rabbit_log:error("Queue ~s on vhost ~s master node is down. "
847-
"Unable to check if the queue is empty. "
848-
"Delete failed",
847+
"The queue may be not empty. "
848+
"Refusing to force-delete.",
849849
[Name, Vhost]),
850850
{error, not_empty};
851851
false ->
852852
rabbit_log:warning("Queue ~s on vhost ~s master node is down. "
853-
"Force-deleting the queue",
853+
"Force-deleting the queue.",
854854
[Name, Vhost]),
855855
delete_crashed_internal(Q1, ActingUser),
856856
{ok, 0}

0 commit comments

Comments
 (0)