|
@@ -281,8 +281,7 @@ export default class {
|
|
|
.catch((error: IgClientError & Partial<RequestError>) => {
|
|
|
if (error instanceof IgExactUserNotFoundError) {
|
|
|
reply(`找不到用户 ${rawUserName.replace(/^@?(.*)$/, '@$1')}。`);
|
|
|
- }
|
|
|
- if (error instanceof IgNetworkError) {
|
|
|
+ } else if (error instanceof IgNetworkError) {
|
|
|
if ((error.cause as Error).message === "Unexpected '<'") {
|
|
|
logger.warn('login required, logging in again...');
|
|
|
return this.session.login().then(retryAction);
|