Skip to content

Commit

Permalink
update the error type
Browse files Browse the repository at this point in the history
Signed-off-by: myan <[email protected]>
  • Loading branch information
yanmxa committed Jul 5, 2024
1 parent ed27d5b commit f60131c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/services/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (s *sqlConsumerService) Delete(ctx context.Context, id string) *errors.Serv
}

if e != gorm.ErrRecordNotFound {
return handleGetError("Resource", "consumer_name", consumer.Name, e)
return errors.GeneralError("Unable to get resources by consumer: %s", e)
}

// e is record not found
Expand Down

0 comments on commit f60131c

Please sign in to comment.