Skip to content

Commit

Permalink
fix: 修改扫描服务获取镜像Manifest文件失败时抛出的异常 #2778
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlkl authored Nov 21, 2024
1 parent ee1d45b commit f8307c4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ class TemporaryScanTokenServiceImpl(
.build()
)
if (nodes.records.isEmpty()) {
throw SystemErrorException(RESOURCE_NOT_FOUND, sha256)
throw ErrorCodeException(RESOURCE_NOT_FOUND, "file[$sha256] of [$projectId:$repoName] not found")
}
val fullPath = nodes.records[0][NodeDetail::fullPath.name].toString()
return nodeService.getNodeDetail(ArtifactInfo(projectId, repoName, fullPath))?.let { node ->
Expand Down

0 comments on commit f8307c4

Please sign in to comment.