Skip to content

Commit

Permalink
Handle token fetch error correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
FireMasterK committed Sep 4, 2023
1 parent a95d3fb commit 1fdda76
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ func (p *Provider) GetWireguardConnection(ctx context.Context, connection models

// fetch token from PIA's API
token, err := fetchToken(ctx, client, "gtoken", p.authFilePath)
if err != nil {
return settings, err
}

gateway := connection.IP.String()

Expand Down

0 comments on commit 1fdda76

Please sign in to comment.