Display vectorization error in toast

This commit is contained in:
Cohee 2023-09-09 21:36:04 +03:00
parent 2fa038f91d
commit ed6417ebcd

View File

@ -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;
}
}