Skip to content

Commit

Permalink
chore: Add missing use of new PluginNotRegistered error.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjholm committed Jul 30, 2021
1 parent ac62614 commit e749464
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/adapters/grpc/event_grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ import (
"github.com/google/uuid"
pb "github.com/nitric-dev/membrane/interfaces/nitric/v1"
"github.com/nitric-dev/membrane/pkg/plugins/events"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)

// GRPC Interface for registered Nitric events Plugins
Expand All @@ -32,7 +30,7 @@ type EventServiceServer struct {

func (s *EventServiceServer) checkPluginRegistered() error {
if s.eventPlugin == nil {
return status.Errorf(codes.Unimplemented, "Event plugin not registered")
return NewPluginNotRegisteredError("Event")
}

return nil
Expand Down

0 comments on commit e749464

Please sign in to comment.