feat: More user-friendly packetServer error message x2

This commit is contained in:
pk5ls20 2024-10-20 07:46:57 +08:00
parent 16a2e5e996
commit cbad3ff1de
No known key found for this signature in database
GPG Key ID: 6370ED7A169F493A

View File

@ -50,7 +50,7 @@ export class PacketHighwaySession {
private async checkAvailable() {
if (!this.packetClient.available) {
this.logger.logError('[Highway] packetServer not available!');
throw new Error('packetServer不可用检查链接并参照文档 https://napneko.github.io/config/advanced 进行配置');
throw new Error('packetServer不可用参照文档 https://napneko.github.io/config/advanced 检查packetServer状态或进行配置');
}
if (this.sig.sigSession === null || this.sig.sessionKey === null) {
this.logger.logWarn('[Highway] sigSession or sessionKey not available!');