log_read: correct error message
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Wed, 12 Dec 2018 10:02:07 +0000 (11:02 +0100)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Mon, 8 Nov 2021 15:12:32 +0000 (16:12 +0100)
src/log_read.py

index 7fb5571..ce3e71b 100644 (file)
@@ -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)