You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -66,6 +71,9 @@ private function parseNewsPage(string $contents): array {
66
71
$lineNo = (int) $lineNo;
67
72
++$lineNo; // Line numbers start from 1, although the array index starts at 0
68
73
74
+
if (isset(self::STATIC_REPLACEMENTS[$line])) {
75
+
$line = self::STATIC_REPLACEMENTS[$line];
76
+
}
69
77
70
78
// Should skip line?
71
79
if ($this->skipLine($line, $lineNo)) {
@@ -109,7 +117,7 @@ private function parseNewsPage(string $contents): array {
109
117
}
110
118
111
119
if ($lastLine === null) {
112
-
thrownew \RuntimeException('Cursor last line number should not be empty when detecting a continuation of a change record');
120
+
thrownew \RuntimeException(\sprintf("Cursor last line number should not be empty when detecting a continuation of a change record on line %d:\r\n%s", $lineNo, $line));
0 commit comments