Skip to content

Commit 29ff38f

Browse files
committed
add
1 parent 8992856 commit 29ff38f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcpproxy/mcp_server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ func (r *TokenRefresher) reauthorizeWithProxy() error {
10191019
r.mu.Unlock()
10201020
atomic.AddInt64(&r.stats.TokenRefreshErrors, 1)
10211021
log.Printf("OAuth re-authorization request failed: %v", err)
1022-
return err
1022+
return fmt.Errorf("OAuth re-authorization failed: %w", err)
10231023
}
10241024
log.Printf("OAuth re-authorization request successfully: AccessToken length=%d, RefreshToken length=%d, ExpiresIn=%d",
10251025
len(tokenResult.AccessToken), len(tokenResult.RefreshToken), refreshTokenValidity)

0 commit comments

Comments
 (0)