feat: 对路由空内容报错 (#2388)
This commit is contained in:
parent
77ac67e2b0
commit
3dde0db910
|
|
@ -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反馈该问题');
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue