mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-07 13:39:35 +08:00
feat: error page
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user