diff options
Diffstat (limited to 'bridge')
-rw-r--r-- | bridge/core/config.go | 3 | ||||
-rw-r--r-- | bridge/gitlab/config.go | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/bridge/core/config.go b/bridge/core/config.go index 8d306ef6..afcda560 100644 --- a/bridge/core/config.go +++ b/bridge/core/config.go @@ -33,6 +33,9 @@ func FinishConfig(repo *cache.RepoCache, metaKey string, login string) error { i, err := repo.NewIdentityFromGitUserRaw(map[string]string{ metaKey: login, }) + if err != nil { + return err + } err = repo.SetUserIdentity(i) if err != nil { diff --git a/bridge/gitlab/config.go b/bridge/gitlab/config.go index 36daaa68..fb593819 100644 --- a/bridge/gitlab/config.go +++ b/bridge/gitlab/config.go @@ -256,6 +256,9 @@ func promptToken(baseUrl string) (*auth.Token, error) { } rawToken, err := input.Prompt("Enter token", "token", input.Required, validator) + if err != nil { + return nil, err + } token := auth.NewToken(rawToken, target) token.SetMetadata(auth.MetaKeyLogin, login) |