mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix: error message useful for developers
This commit is contained in:
@@ -4,7 +4,7 @@ module.exports = async (ctx, next) => {
|
||||
try {
|
||||
await next();
|
||||
} catch (err) {
|
||||
logger.error('Promise error: ' + err);
|
||||
logger.error('Promise error: ' + (err instanceof Error ? err.stack : err));
|
||||
ctx.set({
|
||||
'Content-Type': 'text/html; charset=UTF-8',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user