From dfbd89ad53c0fdf820e3aac488520388862aff31 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 23 Aug 2023 21:49:35 -0400 Subject: [PATCH] fix: Improve error message when an individual document in a large import is too large --- server/commands/documentImporter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/commands/documentImporter.ts b/server/commands/documentImporter.ts index 5e64c3793..7be7ec27f 100644 --- a/server/commands/documentImporter.ts +++ b/server/commands/documentImporter.ts @@ -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` ); }