aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Siarkowicz <mareksiarkowicz@gmail.com>2015-06-15 15:32:31 +0200
committerMarek Siarkowicz <mareksiarkowicz@gmail.com>2015-06-15 15:32:31 +0200
commit2340cbd0291f6f0f64615a3ed0cb5cfc062ec4f5 (patch)
treeae43f8aa9ee6c147c31e1b929ef0594c2283164b
parent814921eabbfb0cdc41baeb62e4b25da10c9e0212 (diff)
downloadpyParrotZikTCP-2340cbd0291f6f0f64615a3ed0cb5cfc062ec4f5.tar.xz
pyParrotZikTCP-2340cbd0291f6f0f64615a3ed0cb5cfc062ec4f5.zip
Add more information to unknown response.
-rw-r--r--parrot_zik/resource_manager.py3
1 files changed, 2 insertions, 1 deletions
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