Skip to content

Commit 592e4ab

Browse files
committed
fix: fix error tip for user cannot add self as friend
1 parent c451a09 commit 592e4ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/services/core/user/friendRequest.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class FriendService extends TcService {
5757
}
5858

5959
if (from === to) {
60-
throw new Errors.ValidationError(t('不能添加自己为好友'));
60+
throw new Errors.MoleculerError(t('不能添加自己为好友'));
6161
}
6262

6363
const exist = await this.adapter.findOne({

0 commit comments

Comments
 (0)