Fix `AcivityId` typo in error strings (#4359)
This commit is contained in:
parent
d3ca9de3ca
commit
02aa70a64a
|
|
@ -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")
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue