Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,14 @@ private fun applyGenerations(
linksCreated += linkStmt.executeUpdate()
}
}
require(unmatchedTitles.isEmpty()) {
"Generation CSV has ${unmatchedTitles.size} unmatched book title(s): " +
unmatchedTitles.take(20).joinToString()
// Don't abort the whole build when generations.csv references books that are
// not in the current library (upstream otzaria-library vs ForDB drift): keep
// every link that DID match and just warn about the rest.
if (unmatchedTitles.isNotEmpty()) {
logger.w {
"Generation CSV has ${unmatchedTitles.size} unmatched book title(s) (skipped): " +
unmatchedTitles.take(20).joinToString()
}
}
return GenerationApplyResult(generationsCreated, linksCreated, 0)
}
Expand Down
Loading