diff options
| -rw-r--r-- | findNext.go | 5 | ||||
| -rw-r--r-- | main.go | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/findNext.go b/findNext.go index f9d7dd5..14d3558 100644 --- a/findNext.go +++ b/findNext.go @@ -125,7 +125,10 @@ func findNext() bool { return true } if findCounter == 0 { - log.Info("NOTHING TO UPDATE. findCounter =", findCounter) + log.Info("NOTHING TO UPDATE. findCounter =", findCounter, "found len =", me.found.Len()) + if me.found.Len() == 0 { + okExit("") + } } else { log.Info("me.current is nil findCounter =", findCounter, "so set findFix =", findFix) } @@ -122,7 +122,7 @@ func main() { // check if nothing is found an exit? if me.found.Len() == 0 { log.Info("nothing found to publish") - os.Exit(0) + okExit("found nothing") } } me.Enable() |
