forked from pinks/eris
feat: remove url from error
This commit is contained in:
parent
2a53ba6826
commit
55c6b91b37
|
@ -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}`);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue