This commit is contained in:
Nobody committed 2026-11-12 18:34:33 +08:00
1 parent 5977b1b272
commit 09af3bd8c0
18 files changed
+57 -30

No files matched your search

+7 -3
View File
@@ -1,4 +1,4 @@
import { PFiles } from "../file.ts";
import { PFiles } from "../publication/file.ts";
import { PDFParse } from "pdf-parse";
import {
PDFArray,
@@ -168,10 +168,14 @@ export class IndexBuilder {
});
}
}
const missingTitles = titles.filter((title) => !this.indexed_map.has(title));
const missingTitles = titles.filter((title) =>
!this.indexed_map.has(title)
);
if (missingTitles.length > 0) {
throw new Error(
`Index coverage incomplete (${this.indexed_map.size}/${titles.length}); missing: ${missingTitles.join("、")}`,
`Index coverage incomplete (${this.indexed_map.size}/${titles.length}); missing: ${
missingTitles.join("、")
}`,
);
}
}