mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-08-31 11:33:24 +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)
|
||||
}
|
||||
|
||||
if repo != nil {
|
||||
if repo != nil && err == nil {
|
||||
c.Set("repo", repo)
|
||||
c.Next()
|
||||
return
|
||||
|
Reference in New Issue
Block a user