mirror of
https://github.com/actions/actions-runner-controller.git
synced 2026-01-21 20:01:04 +08:00
Fix AcivityId typo in error strings (#4359)
This commit is contained in:
@@ -36,7 +36,7 @@ type ActionsError struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (e *ActionsError) Error() string {
|
func (e *ActionsError) Error() string {
|
||||||
return fmt.Sprintf("actions error: StatusCode %d, AcivityId %q: %v", e.StatusCode, e.ActivityID, e.Err)
|
return fmt.Sprintf("actions error: StatusCode %d, ActivityId %q: %v", e.StatusCode, e.ActivityID, e.Err)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e *ActionsError) Unwrap() error {
|
func (e *ActionsError) Unwrap() error {
|
||||||
@@ -112,7 +112,7 @@ type MessageQueueTokenExpiredError struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (e *MessageQueueTokenExpiredError) Error() string {
|
func (e *MessageQueueTokenExpiredError) Error() string {
|
||||||
return fmt.Sprintf("MessageQueueTokenExpiredError: AcivityId %q, StatusCode %d: %s", e.activityID, e.statusCode, e.msg)
|
return fmt.Sprintf("MessageQueueTokenExpiredError: ActivityId %q, StatusCode %d: %s", e.activityID, e.statusCode, e.msg)
|
||||||
}
|
}
|
||||||
|
|
||||||
type HttpClientSideError struct {
|
type HttpClientSideError struct {
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ func TestActionsError(t *testing.T) {
|
|||||||
|
|
||||||
s := err.Error()
|
s := err.Error()
|
||||||
assert.Contains(t, s, "StatusCode 404")
|
assert.Contains(t, s, "StatusCode 404")
|
||||||
assert.Contains(t, s, "AcivityId \"activity-id\"")
|
assert.Contains(t, s, "ActivityId \"activity-id\"")
|
||||||
assert.Contains(t, s, "example error description")
|
assert.Contains(t, s, "example error description")
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user