Skip to content

Commit e49957b

Browse files
committed
fix(core): Don't output curl string if error is encountered.
1 parent b67c391 commit e49957b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

auth_providers/auth_core.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,8 +503,8 @@ func (c *CommandAuthConfig) Authenticate() error {
503503
c.HttpClient.Timeout = time.Duration(c.HttpClientTimeout) * time.Second
504504

505505
cResp, cErr := c.HttpClient.Do(req)
506-
curlStr, cErr := RequestToCurl(req)
507-
if cErr == nil {
506+
curlStr, curlErr := RequestToCurl(req)
507+
if curlErr == nil {
508508
log.Printf("[TRACE] curl command: %s", curlStr)
509509
}
510510

0 commit comments

Comments
 (0)