This commit is contained in:
1 parent
5977b1b272
commit
09af3bd8c0
18 files changed
+57
-30
No files matched your search
@@ -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("、")
|
||||
}`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user