mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-04 15:29:48 +00:00
Check for error in repo middleware (#3688)
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
This commit is contained in:
@@ -66,7 +66,7 @@ func SetRepo() gin.HandlerFunc {
|
|||||||
repo, err = _store.GetRepoName(fullName)
|
repo, err = _store.GetRepoName(fullName)
|
||||||
}
|
}
|
||||||
|
|
||||||
if repo != nil {
|
if repo != nil && err == nil {
|
||||||
c.Set("repo", repo)
|
c.Set("repo", repo)
|
||||||
c.Next()
|
c.Next()
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user