app: wrap error message in <pre>
This commit is contained in:
parent
274cd56a4d
commit
46feb2a1ce
|
|
@ -8,7 +8,7 @@ module.exports = async (ctx, next) => {
|
|||
ctx.set({
|
||||
'Content-Type': 'text/html; charset=UTF-8',
|
||||
});
|
||||
ctx.body = 'RSSHub 发生了一些意外: ' + err;
|
||||
ctx.body = `RSSHub 发生了一些意外: <pre>${err instanceof Error ? err.stack : err}</pre>`;
|
||||
ctx.status = 500;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue