Remove unwanted wrapper name stuttering and standardise common error returns (#213)

This commit is contained in:
Ryan O'Hara-Reid
2018-11-23 12:55:00 +11:00
committed by Adrian Gallagher
parent c41f611d96
commit 92534249bf
154 changed files with 1362 additions and 1367 deletions

View File

@@ -77,7 +77,7 @@ func (s *Slack) Connect() error {
// PushEvent pushes an event to either a slack channel or specific client
func (s *Slack) PushEvent(base.Event) error {
return errors.New("not yet implemented")
return common.ErrNotYetImplemented
}
// BuildURL returns an appended token string with the SlackURL

View File

@@ -60,7 +60,7 @@ func (s *SMSGlobal) Connect() error {
// PushEvent pushes an event to a contact list via SMS
func (s *SMSGlobal) PushEvent(base.Event) error {
return errors.New("not yet implemented")
return common.ErrNotYetImplemented
}
// GetEnabledContacts returns how many SMS contacts are enabled in the

View File

@@ -46,7 +46,7 @@ func (s *SMTPservice) Connect() error {
// PushEvent sends an event to supplied recipient list via SMTP
func (s *SMTPservice) PushEvent(base.Event) error {
return errors.New("not yet implemented")
return common.ErrNotYetImplemented
}
// Send sends an email template to the recipient list via your SMTP host when