Mercurial > bitten > bitten-test
changeset 719:848bcd96df65
Updating protocol version counter following change in [793] / #459, and also improved errors so that the reason is output on console without verbose logging enabled. Fixes #511.
Thanks to Felix Schwarz.
author | osimons |
---|---|
date | Wed, 09 Dec 2009 11:37:58 +0000 |
parents | 0f5456e9d5da |
children | 3a665b40073c |
files | bitten/__init__.py bitten/slave.py |
diffstat | 2 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/bitten/__init__.py +++ b/bitten/__init__.py @@ -19,4 +19,4 @@ pass # The master-slave protocol/configuration version -PROTOCOL_VERSION = 2 +PROTOCOL_VERSION = 3
--- a/bitten/slave.py +++ b/bitten/slave.py @@ -169,9 +169,8 @@ ).startswith('text/plain'): content = e.read() else: - content = 'no message available' - log.debug('Server returned error %d: %s (%s)', - e.code, e.msg, content) + content = 'Unknown cause of error' + e.msg = '%s (%s)' % (e.msg, content) raise return e