From 2340cbd0291f6f0f64615a3ed0cb5cfc062ec4f5 Mon Sep 17 00:00:00 2001 From: Marek Siarkowicz Date: Mon, 15 Jun 2015 15:32:31 +0200 Subject: Add more information to unknown response. --- parrot_zik/resource_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parrot_zik/resource_manager.py b/parrot_zik/resource_manager.py index 8a9cd46..4f90fb6 100644 --- a/parrot_zik/resource_manager.py +++ b/parrot_zik/resource_manager.py @@ -57,7 +57,8 @@ class ResourceManagerBase(object): if data.notify: notifications.append(data.notify) else: - raise AssertionError('Unknown response') + raise AssertionError('Unknown response "{}" for {}'.format( + data, message.request_string)) data = self.receive_message() self.handle_notifications(notifications, message.resource) return data.answer -- cgit v1.2.1