Skip to content

Commit 02aa70a

Browse files
authored
Fix AcivityId typo in error strings (#4359)
1 parent d3ca9de commit 02aa70a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

github/actions/errors.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ type ActionsError struct {
3636
}
3737

3838
func (e *ActionsError) Error() string {
39-
return fmt.Sprintf("actions error: StatusCode %d, AcivityId %q: %v", e.StatusCode, e.ActivityID, e.Err)
39+
return fmt.Sprintf("actions error: StatusCode %d, ActivityId %q: %v", e.StatusCode, e.ActivityID, e.Err)
4040
}
4141

4242
func (e *ActionsError) Unwrap() error {
@@ -112,7 +112,7 @@ type MessageQueueTokenExpiredError struct {
112112
}
113113

114114
func (e *MessageQueueTokenExpiredError) Error() string {
115-
return fmt.Sprintf("MessageQueueTokenExpiredError: AcivityId %q, StatusCode %d: %s", e.activityID, e.statusCode, e.msg)
115+
return fmt.Sprintf("MessageQueueTokenExpiredError: ActivityId %q, StatusCode %d: %s", e.activityID, e.statusCode, e.msg)
116116
}
117117

118118
type HttpClientSideError struct {

github/actions/errors_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func TestActionsError(t *testing.T) {
2222

2323
s := err.Error()
2424
assert.Contains(t, s, "StatusCode 404")
25-
assert.Contains(t, s, "AcivityId \"activity-id\"")
25+
assert.Contains(t, s, "ActivityId \"activity-id\"")
2626
assert.Contains(t, s, "example error description")
2727
})
2828

0 commit comments

Comments
 (0)