adding missing error handling for GET repo
Signed-off-by: Florian Wagner <h2floh@github.com>
This commit is contained in:
@@ -230,6 +230,8 @@ func getOrCreateGitHubRepo(ctx context.Context, client *github.Client, repoName,
|
||||
} else {
|
||||
return nil, errors.Wrapf(err, "error creating repository %s/%s", ownerName, repoName)
|
||||
}
|
||||
} else if err != nil {
|
||||
return nil, errors.Wrapf(err, "error creating repository %s/%s", ownerName, repoName)
|
||||
}
|
||||
|
||||
if ghRepo == nil {
|
||||
|
||||
Reference in New Issue
Block a user