removed obsolete errors
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
package notifications
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
gmessaging "github.com/tech/sendico/pkg/generated/gmessaging"
|
||||
"github.com/tech/sendico/pkg/merrors"
|
||||
messaging "github.com/tech/sendico/pkg/messaging/envelope"
|
||||
"github.com/tech/sendico/pkg/model"
|
||||
nm "github.com/tech/sendico/pkg/model/notification"
|
||||
@@ -18,7 +17,7 @@ type DemoRequestNotification struct {
|
||||
|
||||
func (drn *DemoRequestNotification) Serialize() ([]byte, error) {
|
||||
if drn.request == nil {
|
||||
return nil, fmt.Errorf("demo request payload is empty")
|
||||
return nil, merrors.InvalidArgument("demo request payload is empty")
|
||||
}
|
||||
msg := gmessaging.DemoRequestEvent{
|
||||
Name: drn.request.Name,
|
||||
|
||||
Reference in New Issue
Block a user