Skip to content

Commit

Permalink
a better error
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWoolfenden committed Dec 9, 2024
1 parent ddc6aa1 commit dd1b9bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gitHub.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type nilResponseError struct {
}

func (m *nilResponseError) Error() string {
return fmt.Sprintf("nil response")
return "nil response"
}

type nonSuccessError struct {
Expand All @@ -62,13 +62,13 @@ func (m *workflowInvokeError) Error() string {
type gitHubRateLimitingError struct{}

func (m *gitHubRateLimitingError) Error() string {
return fmt.Sprintf("your are being GitHub Ratelimited")
return "you are being GitHub Rate-limited"
}

type insecureProtocolError struct{}

func (m *insecureProtocolError) Error() string {
return fmt.Sprintf("insecure protocol")
return "insecure protocol"
}

// InvokeGithubDispatchEvent uses your GitHub api key (if sufficiently enabled) to invoke a GitHub action workflow.
Expand Down

0 comments on commit dd1b9bf

Please sign in to comment.