mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 11:51:02 +00:00
log when error fetching repository
This commit is contained in:
parent
146d884f11
commit
e3afea861b
2 changed files with 6 additions and 2 deletions
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{
|
||||
|
|
Loading…
Reference in a new issue