diff options
author | Marek Siarkowicz <mareksiarkowicz@gmail.com> | 2015-06-15 15:32:31 +0200 |
---|---|---|
committer | Marek Siarkowicz <mareksiarkowicz@gmail.com> | 2015-06-15 15:32:31 +0200 |
commit | 2340cbd0291f6f0f64615a3ed0cb5cfc062ec4f5 (patch) | |
tree | ae43f8aa9ee6c147c31e1b929ef0594c2283164b /parrot_zik | |
parent | 814921eabbfb0cdc41baeb62e4b25da10c9e0212 (diff) | |
download | pyParrotZikTCP-2340cbd0291f6f0f64615a3ed0cb5cfc062ec4f5.tar.xz pyParrotZikTCP-2340cbd0291f6f0f64615a3ed0cb5cfc062ec4f5.zip |
Add more information to unknown response.
Diffstat (limited to '')
-rw-r--r-- | parrot_zik/resource_manager.py | 3 |
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 |