Skip to content

Commit c1d8869

Browse files
committed
NEWS: Parsing error - show the line and line content that errorred
1 parent da74b57 commit c1d8869

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NewsFetcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ private function parseNewsPage(string $contents): array {
110110
}
111111

112112
if (empty($cursorExt)) {
113-
throw new \RuntimeException('Cursor ext name should not be empty when detecting a new change');
113+
throw new \RuntimeException(sprintf('Cursor ext name should not be empty when detecting a new change (on line no %d: "%s"', $lineNo, $line));
114114
}
115115

116116
// is this new change record?

0 commit comments

Comments
 (0)