From e2dc3e9ff3dac35ff849d7fab0a62067e1c442b9 Mon Sep 17 00:00:00 2001 From: Audrius Butkevicius Date: Tue, 21 Oct 2014 00:01:02 +0100 Subject: [PATCH] Fix error messages --- cmd/syncthing/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go index 30d6b490f..4a4d993e7 100644 --- a/cmd/syncthing/main.go +++ b/cmd/syncthing/main.go @@ -618,7 +618,7 @@ nextFolder: // doesn't exist, try creating it. err = os.MkdirAll(folder.Path, 0700) if err != nil { - l.Warnf("Stopping folder %q - %v", err) + l.Warnf("Stopping folder %q - %v", folder.ID, err) cfg.InvalidateFolder(id, err.Error()) continue nextFolder } @@ -632,7 +632,7 @@ nextFolder: if err != nil { // If there was another error or we could not create the // path, the folder is invalid. - l.Warnf("Stopping folder %q - %v", err) + l.Warnf("Stopping folder %q - %v", folder.ID, err) cfg.InvalidateFolder(id, err.Error()) continue nextFolder }