🌐 AI搜索 & 代理 主页
Skip to content

Commit 2b7d781

Browse files
Update pkg/errors/error.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 3727f68 commit 2b7d781

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/errors/error.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ func newGitHubRawAPIError(message string, resp *http.Response, err error) *GitHu
5959
}
6060
}
6161

62+
func (e *GitHubRawAPIError) Error() string {
63+
return fmt.Errorf("%s: %w", e.Message, e.Err).Error()
64+
}
6265
type GitHubErrorKey struct{}
6366
type GitHubCtxErrors struct {
6467
api []*GitHubAPIError

0 commit comments

Comments
 (0)