From ed6417ebcd0fc87e2ee506912ecf307fdd440b86 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sat, 9 Sep 2023 21:36:04 +0300 Subject: [PATCH] Display vectorization error in toast --- public/scripts/extensions/vectors/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/scripts/extensions/vectors/index.js b/public/scripts/extensions/vectors/index.js index c4ed01796..a1addc4f4 100644 --- a/public/scripts/extensions/vectors/index.js +++ b/public/scripts/extensions/vectors/index.js @@ -94,7 +94,9 @@ async function synchronizeChat(batchSize = 5) { return newVectorItems.length - batchSize; } catch (error) { + toastr.error('Check server console for more details', 'Vectorization failed'); console.error('Vectors: Failed to synchronize chat', error); + return -1; } }