Skip to content

Commit

Permalink
update return type in README example
Browse files Browse the repository at this point in the history
Signed-off-by: Cassandra Coyle <[email protected]>
  • Loading branch information
cicoyle committed Dec 11, 2023
1 parent 44a14d5 commit 1a55af0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion errors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The standardizing of errors to be used in Dapr based on the gRPC Richer Error Mo
import kitErrors "github.com/dapr/kit/errors"

// Define error in dapr pkg/api/<building_block>_errors.go
func PubSubNotFound(pubsubName string, pubsubType string, metadata map[string]string) *kitErrors.Error {
func PubSubNotFound(pubsubName string, pubsubType string, metadata map[string]string) error {
message := fmt.Sprintf("pubsub %s is not found", pubsubName)

return kitErrors.New(
Expand Down

0 comments on commit 1a55af0

Please sign in to comment.