From: Christian Herdtweck Date: Wed, 12 Dec 2018 10:02:07 +0000 (+0100) Subject: log_read: correct error message X-Git-Tag: v1.6.7~2^2 X-Git-Url: http://developer.intra2net.com/git/?p=pyi2ncommon;a=commitdiff_plain;h=37288ebb0ae12a3c214479ff226e25b4c5c2c073 log_read: correct error message --- diff --git a/src/log_read.py b/src/log_read.py index 7fb5571..ce3e71b 100644 --- a/src/log_read.py +++ b/src/log_read.py @@ -346,8 +346,9 @@ class LineReader(IterativeReader): if line[-1] in LINE_SPLITTERS: result.append((description, line.rstrip(LINE_SPLITTERS), idx)) elif should_be_no_new_lines: - raise ValueError('line splitters are not compatible with' - 'str.splitlines!') + # self-check + raise ValueError('Programming error: something went wrong with ' + 'line splitting/buffering.') else: self.line_buffers[idx] = line should_be_no_new_lines = True # (this should be the last)