From 2ae3ba9b5f1927cff6e2058849db9fb83179745b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl>
Date: Tue, 23 Jun 2020 22:11:06 +0200
Subject: [PATCH] docs fix

---
 coolamqp/attaches/declarer.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/coolamqp/attaches/declarer.py b/coolamqp/attaches/declarer.py
index 6bcaae2..cd78885 100644
--- a/coolamqp/attaches/declarer.py
+++ b/coolamqp/attaches/declarer.py
@@ -284,7 +284,7 @@ class Declarer(Channeler, Synchronized):
         """
         if isinstance(obj, Queue):
             if obj.anonymous:
-                raise ValueError('Cannot declare anonymous queue')
+                raise ValueError('Cannot declare anonymous queue, use consume to have the name filled in!')
 
         if span is not None:
             enqueued_span = self.cluster.tracer.start_span('Enqueued', child_of=span)
-- 
GitLab