diff options
author | Jakob Borg <jakob@nym.se> | 2014-09-01 17:47:18 +0200 |
---|---|---|
committer | Jakob Borg <jakob@nym.se> | 2014-09-01 17:47:18 +0200 |
commit | 2ffa92ba1b883bb523d51fedf81e3a40136caf66 (patch) | |
tree | 4b3e54e0a20879bc37c97507e57caa098380ad4c | |
parent | 6ecddd83886023d52a0773a6e63c32f862357ae1 (diff) | |
download | syncthing-2ffa92ba1b883bb523d51fedf81e3a40136caf66.tar.gz syncthing-2ffa92ba1b883bb523d51fedf81e3a40136caf66.zip |
Warn on startup for stopped repositories
-rw-r--r-- | cmd/syncthing/main.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go index 6961f5f95..91994ccb2 100644 --- a/cmd/syncthing/main.go +++ b/cmd/syncthing/main.go @@ -420,6 +420,7 @@ nextRepo: // that all files have been deleted which might not be the case, // so mark it as invalid instead. if err != nil || !fi.IsDir() { + l.Warnf("Stopping repository %q - directory missing, but has files in index", repo.ID) cfg.Repositories[i].Invalid = "repo directory missing" continue nextRepo } @@ -432,6 +433,7 @@ nextRepo: if err != nil { // If there was another error or we could not create the // directory, the repository is invalid. + l.Warnf("Stopping repository %q - %v", err) cfg.Repositories[i].Invalid = err.Error() continue nextRepo } |