`fmt.Errorf` hides information and makes it hard to test for specific conditions in returned error. Return a structured error instead. Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com> |
||
|---|---|---|
| .. | ||
| client.go | ||
| client_test.go | ||
| pull_request_test.go | ||
| queries_gist.go | ||
| queries_issue.go | ||
| queries_issue_test.go | ||
| queries_org.go | ||
| queries_pr.go | ||
| queries_repo.go | ||
| queries_repo_test.go | ||
| queries_user.go | ||