Add new error ErrAlreadyRegistered.
authorOllivier Robert <roberto@keltia.net>
Fri, 07 Apr 2017 15:32:29 +0200
changeset 33 bce8b17415ae
parent 32 c28f7e417146
child 34 69711df3beac
Add new error ErrAlreadyRegistered.
gondole.go
--- a/gondole.go	Fri Apr 07 15:31:39 2017 +0200
+++ b/gondole.go	Fri Apr 07 15:32:29 2017 +0200
@@ -4,6 +4,7 @@
 import (
 	"github.com/sendgrid/rest"
 	"fmt"
+	"errors"
 )
 
 const (
@@ -14,6 +15,10 @@
 	NoRedirect = "urn:ietf:wg:oauth:2.0:oob"
 )
 
+var (
+	ErrAlreadyRegistered = errors.New("App already registered")
+)
+
 // prepareRequest insert all pre-defined stuff
 func (g *Gondole) prepareRequest(what string) (req rest.Request) {
 	endPoint := APIEndpoint + fmt.Sprintf("/%s/", what)