From eabf6c8a927dca4496d222de1c4def37a123ee17 Mon Sep 17 00:00:00 2001 From: Simone Gotti Date: Wed, 15 May 2019 23:22:05 +0200 Subject: [PATCH] gateway: fix wrong error message --- internal/services/gateway/action/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/services/gateway/action/user.go b/internal/services/gateway/action/user.go index 6879c2f..46ccb45 100644 --- a/internal/services/gateway/action/user.go +++ b/internal/services/gateway/action/user.go @@ -742,7 +742,7 @@ func (h *ActionHandler) HandleOauth2Callback(ctx context.Context, code, state st oauth2Source, err := common.GetOauth2Source(rs, "") if err != nil { - return nil, errors.Wrapf(err, "failed to create gitlab source") + return nil, errors.Wrapf(err, "failed to create oauth2 source") } oauth2Token, err := oauth2Source.RequestOauth2Token(h.webExposedURL+"/oauth2/callback", code)