fedimbed: errors dump stack now
This commit is contained in:
parent
784f2d9c20
commit
39ec14a6b0
1 changed files with 4 additions and 1 deletions
|
@ -712,7 +712,10 @@ events.add("messageCreate", "fedimbed", async function (msg) {
|
||||||
`Hit "${service}" for "${url}", processing now.`
|
`Hit "${service}" for "${url}", processing now.`
|
||||||
);
|
);
|
||||||
await processUrl(msg, url, hasSpoiler).catch((err) => {
|
await processUrl(msg, url, hasSpoiler).catch((err) => {
|
||||||
logger.error("fedimbed", `Error processing "${url}": ${err}`);
|
logger.error(
|
||||||
|
"fedimbed",
|
||||||
|
`Error processing "${url}":\n` + err.stack
|
||||||
|
);
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue