Skip to content

Commit 9d13ae6

Browse files
authored
Merge pull request #134 from team-ppointer/develop
[feat] concept tag 에러 로깅을 추가해요
2 parents 2c3f7ff + 25c938b commit 9d13ae6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/main/java/com/moplus/moplus_server/domain/concept/repository/ConceptTagRepository.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,17 @@ default void existsByIdElseThrow(Set<Long> ids) {
1515
.toList();
1616

1717
if (ids.size() != foundIds.size()) {
18-
throw new NotFoundException(ErrorCode.CONCEPT_TAG_NOT_FOUND_IN_LIST);
18+
throw new NotFoundException(ErrorCode.CONCEPT_TAG_NOT_FOUND_IN_LIST,
19+
"targetIds: " + ids + " / foundIds: " + foundIds);
1920
}
2021
}
2122

2223

2324
default List<ConceptTag> findAllByIdsElseThrow(Set<Long> ids) {
2425
List<ConceptTag> conceptTags = findAllById(ids);
2526
if (conceptTags.size() != ids.size()) {
26-
throw new NotFoundException(ErrorCode.CONCEPT_TAG_NOT_FOUND_IN_LIST);
27+
throw new NotFoundException(ErrorCode.CONCEPT_TAG_NOT_FOUND_IN_LIST,
28+
"targetIds: " + ids + " / foundIds: " + conceptTags);
2729
}
2830
return conceptTags;
2931
}

0 commit comments

Comments
 (0)