mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-02-16 19:35:14 +00:00
Check for error in repo middleware (#3688)
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
This commit is contained in:
parent
b00b9f7ade
commit
f8151aa97d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue