diff options
| author | Paul Buetow <paul@buetow.org> | 2023-06-18 12:09:43 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2023-06-18 12:09:43 +0300 |
| commit | 9e63c35bdb3f2a49f60eabb7f7f1ce8e3e7fe6e4 (patch) | |
| tree | 3a0b81d23db9cec370c67f585b70373788926120 /internal/notify.go | |
| parent | 1a963283a18f9c3a69c92bf5b424748c9813d6d4 (diff) | |
add vet and lint checking - fix some lint errors
Diffstat (limited to 'internal/notify.go')
| -rw-r--r-- | internal/notify.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/notify.go b/internal/notify.go index 991743d..a89035b 100644 --- a/internal/notify.go +++ b/internal/notify.go @@ -29,6 +29,8 @@ func notify(conf config, subject, body string) error { []string{conf.EmailTo}, []byte(message)) } -func notifyError(conf config, err error) error { - return notify(conf, fmt.Sprintf("GOGIOS: An error occured: %v", err), err.Error()) +func notifyError(conf config, err error) { + if err := notify(conf, fmt.Sprintf("GOGIOS: An error occured: %v", err), err.Error()); err != nil { + log.Println("error: ", err) + } } |
