feat: error message for bilibili bangumi when the api return… (#4117)
This commit is contained in:
parent
12e21218bb
commit
374ac856b8
|
|
@ -13,6 +13,9 @@ module.exports = async (ctx) => {
|
|||
},
|
||||
});
|
||||
const data = response.data;
|
||||
if (data.code !== 0) {
|
||||
throw Error(`It looks like something went wrong when querying the Bilibili API: code = ${data.code}, message = ${data.message}`);
|
||||
}
|
||||
|
||||
ctx.state.data = {
|
||||
title: `${name} 的追番列表`,
|
||||
|
|
|
|||
Loading…
Reference in New Issue