Skip to content

Commit f279a58

Browse files
authored
Merge pull request #310 from boostcampwm-2022/fix/logger-500
fix: 유저 업데이트 실패 시 log에 이름 기록
2 parents 84d6a73 + 085ce9f commit f279a58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/src/user/user.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class UserService {
3737
try {
3838
user = await this.updateUser(lowerUsername, githubToken);
3939
} catch {
40-
throw new HttpException(`can't update this user.`, HttpStatus.SERVICE_UNAVAILABLE);
40+
throw new HttpException(`can't update user ${lowerUsername}.`, HttpStatus.SERVICE_UNAVAILABLE);
4141
}
4242
}
4343
const { totalRank, tierRank } =
@@ -270,7 +270,7 @@ export class UserService {
270270
primaryLanguages: Array.from(languagesScore.keys()).slice(0, 3),
271271
};
272272
} catch {
273-
throw new HttpException(`can't update this user.`, HttpStatus.SERVICE_UNAVAILABLE);
273+
throw new HttpException(`can't update user ${lowerUsername}.`, HttpStatus.SERVICE_UNAVAILABLE);
274274
}
275275
}
276276

0 commit comments

Comments
 (0)