aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/gitlab
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/gitlab')
-rw-r--r--bridge/gitlab/config.go3
1 files changed, 3 insertions, 0 deletions
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)