mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 10:28:53 +00:00
log when error fetching repository
This commit is contained in:
2
Makefile
2
Makefile
@@ -36,7 +36,7 @@ build:
|
||||
go build
|
||||
|
||||
build_static:
|
||||
go build --ldflags '-extldflags "-static" -X main.version=$(BUILD_NUMBER)' -o drone_static
|
||||
go build --ldflags '-extldflags "-static" -X main.version=$(CI_BUILD_NUMBER)' -o drone_static
|
||||
|
||||
test:
|
||||
go test -cover $(PACKAGES)
|
||||
|
@@ -56,7 +56,11 @@ func SetRepo() gin.HandlerFunc {
|
||||
// we can prompt the user to add.
|
||||
if user != nil {
|
||||
remote := context.Remote(c)
|
||||
repo, _ = remote.Repo(user, owner, name)
|
||||
repo, err = remote.Repo(user, owner, name)
|
||||
if err != nil {
|
||||
log.Errorf("Cannot get repository %s/%s for user %s. %s",
|
||||
owner, user.Login, name, err)
|
||||
}
|
||||
}
|
||||
|
||||
data := gin.H{
|
||||
|
Reference in New Issue
Block a user