mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-22 11:20:15 +01:00
chore: improve meili error handling
This commit is contained in:
parent
68979015c1
commit
655e7ce6d6
9 changed files with 182 additions and 64 deletions
|
|
@ -81,7 +81,7 @@ const projectPath = path.join(__dirname, '..', '..', 'client');
|
|||
|
||||
let messageCount = 0;
|
||||
process.on('uncaughtException', (err) => {
|
||||
// console.error('There was an uncaught error:', err.message);
|
||||
console.error('There was an uncaught error:', err.message);
|
||||
if (err.message.includes('fetch failed')) {
|
||||
if (messageCount === 0) console.error('Meilisearch error, search will be disabled');
|
||||
messageCount++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue