修复 nodejs 代码块 catch 中错误的变量名

This commit is contained in:
包布丁 2024-11-17 19:05:41 +08:00 committed by GitHub
parent e5fbfed428
commit 2dfece077a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -292,7 +292,7 @@ async function getBiliTicket(csrf) {
const data = await response.json();
return data;
} catch (e) {
throw error;
throw e;
}
}
@ -301,7 +301,7 @@ async function getBiliTicket(csrf) {
const ticketResponse = await getBiliTicket(''); // use empty CSRF here
console.log(ticketResponse);
} catch (e) {
console.error('Failed to get BiliTicket:', error);
console.error('Failed to get BiliTicket:', e);
}
})();
```