summaryrefslogtreecommitdiff
path: root/internal/run.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/run.go')
-rw-r--r--internal/run.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/internal/run.go b/internal/run.go
index 586ebbd..0fd0ef1 100644
--- a/internal/run.go
+++ b/internal/run.go
@@ -1,6 +1,9 @@
package internal
-import "context"
+import (
+ "context"
+ "log"
+)
func Run(ctx context.Context, configFile string, renotify bool) {
conf, err := newConfig(configFile)
@@ -24,6 +27,8 @@ func Run(ctx context.Context, configFile string, renotify bool) {
}
if subject, body, doNotify := state.report(renotify); doNotify {
- notify(conf, subject, body)
+ if err := notify(conf, subject, body); err != nil {
+ log.Println("error:", err)
+ }
}
}