diff options
author | Antti Ajanki <antti.ajanki@iki.fi> | 2011-04-12 22:19:00 +0300 |
---|---|---|
committer | Antti Ajanki <antti.ajanki@iki.fi> | 2011-04-12 22:19:00 +0300 |
commit | ae8032e04fa63e67502728c806a8ce482701dc22 (patch) | |
tree | 6c8206e7ba98f1126e26d0c92f80648c3f7bc2cd | |
parent | 1bb94b04baa328b11b7befd075c18cbaf05fa245 (diff) | |
download | vdr-plugin-webvideo-ae8032e04fa63e67502728c806a8ce482701dc22.tar.gz vdr-plugin-webvideo-ae8032e04fa63e67502728c806a8ce482701dc22.tar.bz2 |
Better error message
-rw-r--r-- | src/webvicli/webvicli/client.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/webvicli/webvicli/client.py b/src/webvicli/webvicli/client.py index daefa6d..4a4cf65 100644 --- a/src/webvicli/webvicli/client.py +++ b/src/webvicli/webvicli/client.py @@ -311,6 +311,8 @@ class WVClient: finished, status, errmsg, remaining = webvi.api.pop_message() if finished == handle: return (status, errmsg) + else if finished != -1: + return (501, 'Unexpected handle (got %d, expected %d)' % (finished, handle)) else: return (501, 'No active sockets') |