forked from pinks/eris
1
0
Fork 0

main #14

Merged
nameless merged 16 commits from pinks/eris:main into main 2024-01-03 00:41:03 +00:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit d22848691c - Show all commits

View File

@ -70,7 +70,8 @@ export async function processGenerationQueue() {
return response;
})
.catch((error) => {
workerInstance.update({ lastError: { message: error.message, time: Date.now() } })
const cleanedErrorMessage = error.message.replace(/url \([^)]+\)/, "");
workerInstance.update({ lastError: { message: cleanedErrorMessage, time: Date.now() } })
.catch(() => undefined);
debug(`Worker ${workerInstance.value.key} is down: ${error}`);
});