perf: 优化登录的错误提示

This commit is contained in:
Clansty 2023-11-08 15:50:06 +08:00
parent 9b204aa283
commit a5b885273d
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -113,6 +113,7 @@ export default class SetupController {
}
catch (e) {
this.log.error('登录 OICQ 失败', e);
await this.setupService.informOwner(`登录失败\n${e.message}`);
this.isInProgress = false;
throw e;
}
@ -130,6 +131,7 @@ export default class SetupController {
}
catch (e) {
this.log.error('创建 UserBot 失败', e);
await this.setupService.informOwner(`登录失败\n${e.message}`);
this.isInProgress = false;
throw e;
}