Skip to content

Commit

Permalink
Clarify the message when the BUP_DIR doesn't exist.
Browse files Browse the repository at this point in the history
Now it reminds you to run 'bup init'.  Problem reported by Thomas Klausner.

Signed-off-by: Avery Pennarun <[email protected]>
  • Loading branch information
apenwarr committed May 29, 2011
1 parent 36f565f commit 4658e03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/bup/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 4658e03

Please sign in to comment.