feat: error page

This commit is contained in:
DIYgod
2019-09-04 16:00:00 +08:00
parent dc37a779e4
commit 24cab914d8
7 changed files with 63 additions and 11 deletions

View File

@@ -12,7 +12,7 @@ module.exports = async (ctx, next) => {
if (ctx.state.data) {
if ((!ctx.state.data.item || ctx.state.data.item.length === 0) && !ctx.state.data.allowEmpty) {
throw Error('this route is empty, please check the original site or create an issue on https://github.com/DIYgod/RSSHub/issues/new/choose');
throw Error('this route is empty, please check the original site or <a href="https://github.com/DIYgod/RSSHub/issues/new/choose">create an issue</a>');
}
if (ctx.query && ctx.query.mode && ctx.query.mode.toLowerCase() === 'fulltext') {