From 3e47cd28ba22ad56402f6cbb6aba59374fd643d1 Mon Sep 17 00:00:00 2001 From: dengsgo Date: Fri, 6 Dec 2019 16:26:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fileboy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fileboy.go b/fileboy.go index 978e89c..603af2a 100644 --- a/fileboy.go +++ b/fileboy.go @@ -145,7 +145,7 @@ func addWatcher() { log.Println("watcher add -> ", dir) err := watcher.Add(dir) if err != nil { - logAndExit(err) + logAndExit(PreError, err) } } log.Println("total monitored dirs: " + strconv.Itoa(len(dirsMap)))