mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-07 21:47:57 +08:00
feat: 对路由空内容报错 (#2388)
This commit is contained in:
@@ -55,4 +55,8 @@ module.exports = async (ctx, next) => {
|
||||
return item;
|
||||
});
|
||||
}
|
||||
|
||||
if (ctx.state.data && ctx.state.data.item.length === 0) {
|
||||
throw Error('该路由目前获取内容为空,请检查源站情况或前往https://github.com/DIYgod/RSSHub/issues反馈该问题');
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user