We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d38c89 commit f77f276Copy full SHA for f77f276
internal/app/search_api.go
@@ -51,10 +51,13 @@ func SearchWithAPI(queries []string) {
51
if err != nil {
52
if strings.Contains(err.Error(), "401") {
53
color.Red("[!] Invalid GitHub access token. Please check that your token is correct and has the necessary permissions.")
54
+ os.Exit(1)
55
+ } else if strings.Contains(err.Error(), "403") && strings.Contains(err.Error(), "rate reset in") {
56
+ color.Yellow("[!] Rate limited by GitHub. Scans may be slower...")
57
} else {
58
color.Red("[!] Error authenticating with GitHub: %v", err)
59
60
}
- os.Exit(1)
61
62
63
if !GetFlags().ResultsOnly && !GetFlags().JsonOutput && GetFlags().Debug {
0 commit comments