Skip to content

Commit 714320b

Browse files
authored
Fix bad error message on import for unknown pages (#1287)
A long time back, we did a lot of cleanup of the field names for pages, versions, and the format of import records. However, this error message apparently never got updated! I noticed some warnings today with messages that didn't make any sense, and this was the cause.
1 parent a4fe8fe commit 714320b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/jobs/import_versions_job.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def import_record(record, row)
7171
record = normalize_record(record)
7272
page = page_for_record(record, create: @import.create_pages, row:)
7373
unless page
74-
warn "Skipped unknown URL: #{record['page_url']}@#{record['capture_time']}"
74+
warn "Skipped unknown URL: #{record['url']}@#{record['capture_time']}"
7575
return
7676
end
7777
unless page.active?

0 commit comments

Comments
 (0)