Skip to content

Commit

Permalink
perf: 优化登录的错误提示
Browse files Browse the repository at this point in the history
  • Loading branch information
clansty committed Nov 8, 2023
1 parent 9b204aa commit a5b8852
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/controllers/SetupController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit a5b8852

Please sign in to comment.