Revert "refactor: deduplicate scope error handling between api/client.go and project queries"
This commit is contained in:
parent
2bf1669a6b
commit
d45acae604
3 changed files with 66 additions and 4 deletions
|
|
@ -203,6 +203,7 @@ func GenerateScopeErrorForGQL(gqlErr *ghAPI.GraphQLError) error {
|
|||
}
|
||||
if missing.Len() > 0 {
|
||||
s := missing.ToSlice()
|
||||
// TODO: this duplicates parts of generateScopesSuggestion
|
||||
return fmt.Errorf(
|
||||
"error: your authentication token is missing required scopes %v\n"+
|
||||
"To request it, run: gh auth refresh -s %s",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue