Skip to content

Commit d8a65c4

Browse files
committed
Tidy up error messages with incorrect content
Lots of copy pasting happening here.
1 parent 48eaa2f commit d8a65c4

5 files changed

+4
-8
lines changed

tap/stream_actions.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func (s *StreamActions) GetRecords(ctx context.Context, logger kitlog.Logger, cl
3737

3838
response, err := cl.ActionsV2ListWithResponse(ctx, &client.ActionsV2ListParams{})
3939
if err != nil {
40-
return nil, errors.Wrap(err, "listing incidents for actions stream")
40+
return nil, errors.Wrap(err, "listing actions")
4141
}
4242

4343
for _, element := range response.JSON200.Actions {

tap/stream_custom_field_options.go

-4
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ func (s *StreamCustomFieldOptions) GetRecords(ctx context.Context, logger kitlog
4343
}
4444

4545
for _, element := range response.JSON200.CustomFields {
46-
if err != nil {
47-
return nil, errors.Wrap(err, "listing custom field options")
48-
}
49-
5046
options, err := s.GetOptions(ctx, logger, cl, element.Id)
5147
if err != nil {
5248
return nil, errors.Wrap(err, "listing custom field options")

tap/stream_follow_ups.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func (s *StreamFollowUps) GetRecords(ctx context.Context, logger kitlog.Logger,
3737

3838
response, err := cl.FollowUpsV2ListWithResponse(ctx, &client.FollowUpsV2ListParams{})
3939
if err != nil {
40-
return nil, errors.Wrap(err, "listing incidents for actions stream")
40+
return nil, errors.Wrap(err, "listing incident roles")
4141
}
4242

4343
for _, element := range response.JSON200.FollowUps {

tap/stream_incident_roles.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func (s *StreamIncidentRoles) GetRecords(ctx context.Context, logger kitlog.Logg
3737

3838
response, err := cl.IncidentRolesV2ListWithResponse(ctx)
3939
if err != nil {
40-
return nil, errors.Wrap(err, "listing incidents for actions stream")
40+
return nil, errors.Wrap(err, "listing incident roles")
4141
}
4242

4343
for _, element := range response.JSON200.IncidentRoles {

tap/stream_incident_types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func (s *StreamIncidentTypes) GetRecords(ctx context.Context, logger kitlog.Logg
3737

3838
response, err := cl.IncidentTypesV1ListWithResponse(ctx)
3939
if err != nil {
40-
return nil, errors.Wrap(err, "listing incidents for actions stream")
40+
return nil, errors.Wrap(err, "listing incident types")
4141
}
4242

4343
for _, element := range response.JSON200.IncidentTypes {

0 commit comments

Comments
 (0)