Skip to content

Commit

Permalink
capture http errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rosecodym committed Aug 11, 2023
1 parent 7a27580 commit 39d49da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/detectors/gitlab/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
} else {
secret.VerificationError = fmt.Errorf("unexpected HTTP response status %d", res.StatusCode)
}
} else {
secret.VerificationError = err
}
}
}
Expand Down

0 comments on commit 39d49da

Please sign in to comment.