Skip to content

Commit

Permalink
check for errors from ping
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelPalmer1 committed Oct 27, 2020
1 parent c59af03 commit 1940007
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/provider/pingfed/pingfed.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,7 @@ func (ac *Client) handleLogin(ctx context.Context, doc *goquery.Document) (conte
// Check for errors from Ping
pingErrors := doc.Find("form>.ping-messages>.ping-error")
if pingErrors.Size() == 1 {
errorContent := pingErrors.Text()
return ctx, nil, errors.New(errorContent)
return ctx, nil, errors.New(pingErrors.Text())
}

if loginAttempt > 1 {
Expand Down

0 comments on commit 1940007

Please sign in to comment.