test: filter_time

This commit is contained in:
DIYgod
2019-06-13 16:10:08 +08:00
parent 58be5caf98
commit dea283d0bd
3 changed files with 10 additions and 6 deletions

View File

@@ -9,10 +9,6 @@ module.exports = async (ctx, next) => {
'Content-Type': 'text/html; charset=UTF-8',
});
ctx.body = `RSSHub 发生了一些意外: <pre>${err instanceof Error ? err.stack : err}</pre>`;
if (err.status === 401) {
ctx.status = 401;
} else {
ctx.status = 404;
}
ctx.status = 404;
}
};