mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-06 05:03:44 +08:00
test: add empty item test case
This commit is contained in:
@@ -4,7 +4,7 @@ module.exports = async (ctx, next) => {
|
||||
await next();
|
||||
|
||||
if (ctx.state.data && (!ctx.state.data.item || ctx.state.data.item.length === 0)) {
|
||||
throw Error('该路由目前获取内容为空,请检查源站情况或前往 https://github.com/DIYgod/RSSHub/issues 反馈该问题');
|
||||
throw Error('this route is empty, please check the origin site or create an issue to feedback on https://github.com/DIYgod/RSSHub/issues/new/choose');
|
||||
}
|
||||
|
||||
// decode HTML entities
|
||||
|
||||
Reference in New Issue
Block a user