From c52a467302608012c4fd7d496a7cd60ad153b5cd Mon Sep 17 00:00:00 2001 From: Amine Date: Wed, 5 Jun 2019 00:45:34 +0200 Subject: Allow cancelling configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit correct error message Co-Authored-By: Michael Muré --- bridge/github/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bridge/github') diff --git a/bridge/github/config.go b/bridge/github/config.go index 4a3bddfb..b5468846 100644 --- a/bridge/github/config.go +++ b/bridge/github/config.go @@ -98,7 +98,7 @@ func (*Github) Configure(repo repository.RepoCommon, params core.BridgeParams) ( return nil, err } if !ok { - return nil, fmt.Errorf("project doesn't exist or authentication token has a wrong scope") + return nil, fmt.Errorf("project doesn't exist or authentication token has an incorrect scope") } conf[keyToken] = token @@ -428,7 +428,7 @@ func splitURL(url string) (owner string, project string, err error) { owner = res[1] project = res[2] - return owner, project, nil + return } func getValidGithubRemoteURLs(remotes map[string]string) []string { -- cgit