diff --git a/server/api/pipeline.go b/server/api/pipeline.go index 2077b1b88..d36626de0 100644 --- a/server/api/pipeline.go +++ b/server/api/pipeline.go @@ -316,7 +316,7 @@ func GetStepLogs(c *gin.Context) { if step.PipelineID != pl.ID { // make sure we cannot read arbitrary logs by id - _ = c.AbortWithError(http.StatusBadRequest, fmt.Errorf("step with id %d is not part of repo %s", stepID, repo.FullName)) + c.AbortWithStatus(http.StatusNotFound) return }