fix: Improve error message when an individual document in a large import is too large
This commit is contained in:
@@ -236,7 +236,7 @@ async function documentImporter({
|
|||||||
|
|
||||||
if (state.length > DocumentValidation.maxStateLength) {
|
if (state.length > DocumentValidation.maxStateLength) {
|
||||||
throw InvalidRequestError(
|
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`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user