mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-03-16 17:54:07 +01:00
Ignore pipelines without config (#2949)
Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
@@ -34,6 +34,8 @@ func handlePipelineErr(c *gin.Context, err error) {
|
||||
} else if errors.Is(err, &pipeline.ErrBadRequest{}) {
|
||||
c.String(http.StatusBadRequest, "%s", err)
|
||||
} else if errors.Is(err, pipeline.ErrFiltered) {
|
||||
// for debugging purpose we add a header
|
||||
c.Writer.Header().Add("Pipeline-Filtered", "true")
|
||||
c.Status(http.StatusNoContent)
|
||||
} else {
|
||||
_ = c.AbortWithError(http.StatusInternalServerError, err)
|
||||
|
||||
Reference in New Issue
Block a user