]> git.michaelhowe.org Git - packages/b/bup.git/commitdiff
Clarify the message when the BUP_DIR doesn't exist.
authorAvery Pennarun <apenwarr@gmail.com>
Sun, 29 May 2011 23:34:30 +0000 (19:34 -0400)
committerAvery Pennarun <apenwarr@gmail.com>
Sun, 29 May 2011 23:34:30 +0000 (19:34 -0400)
Now it reminds you to run 'bup init'.  Problem reported by Thomas Klausner.

Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
lib/bup/git.py

index 58cd4a6624c37f9a621b861b8671ec39d5dc89fb..421c306480fc75e3991cc0ec84a33a0eec36bf1b 100644 (file)
@@ -843,7 +843,8 @@ def check_repo_or_die(path=None):
     except OSError, e:
         if e.errno == errno.ENOENT:
             if repodir != home_repodir:
-                log('error: %r is not a bup/git repository\n' % repo())
+                log('error: %r is not a bup repository; run "bup init"\n'
+                    % repo())
                 sys.exit(15)
             else:
                 init_repo()