fix: Improve error message when an individual document in a large import is too large

This commit is contained in:
Tom Moor
2023-08-23 21:49:35 -04:00
parent da9a8af543
commit dfbd89ad53

View File

@@ -236,7 +236,7 @@ async function documentImporter({
if (state.length > DocumentValidation.maxStateLength) {
throw InvalidRequestError(
`The document is too large to import, please reduce the length and try again`
`The document "${title}" is too large to import, please reduce the length and try again`
);
}