Skip to content

Commit

Permalink
Replace exception with log
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaiSviridov committed Dec 19, 2022
1 parent 1d76c02 commit 7c3d26d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/kotlin/loader/gerrit/LoaderChanges.kt
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ class LoaderChanges(
changeIds.add(changeId)

val comments = commentsMap[changeId]
if (change.totalCommentCount > 0 && comments == null) throw Exception("Can't find comments for ${change.number}")
if (change.totalCommentCount > 0 && comments == null) logger.severe("Can't find comments for ${change.number}")
processChanges(change, comments)
}
logger.info("Finished changes from ${file.name} file")
Expand Down

0 comments on commit 7c3d26d

Please sign in to comment.