Skip to content

Commit 8bb93a2

Browse files
committed
Ref #546 - Small clarification in error message
1 parent 6c11e40 commit 8bb93a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

irrd/mirroring/parsers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def _split_stream(self, data: str) -> None:
317317
self._handle_operation(paragraph, paragraphs)
318318

319319
if self.nrtm_source and last_comment_seen.upper().strip() != f'%END {self.source}':
320-
msg = f'NRTM stream error for {self.source}: last paragraph expected to be ' \
320+
msg = f'NRTM stream error for {self.source}: last comment paragraph expected to be ' \
321321
f'"%END {self.source}", but is actually {last_comment_seen.upper().strip()}'
322322
logger.error(msg)
323323
self.database_handler.record_mirror_error(self.source, msg)

irrd/mirroring/tests/test_parsers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def test_test_parse_nrtm_no_end(self):
377377
with pytest.raises(ValueError) as ve:
378378
NRTMStreamParser('TEST', SAMPLE_NRTM_V3_NO_END, mock_dh)
379379

380-
error_msg = 'last paragraph expected to be'
380+
error_msg = 'last comment paragraph expected to be'
381381
assert error_msg in str(ve.value)
382382
assert len(mock_dh.mock_calls) == 1
383383
assert mock_dh.mock_calls[0][0] == 'record_mirror_error'

0 commit comments

Comments
 (0)