]> arthur.barton.de Git - bup.git/commit
cmd/init: don't spit out a traceback on init error
authorGabriel Filion <lelutin@gmail.com>
Mon, 17 Jan 2011 02:19:25 +0000 (21:19 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Tue, 18 Jan 2011 20:33:21 +0000 (12:33 -0800)
commitcc591b05dbb9592e59d0c6ffcbfc07e7b891f65e
treefd9d7f8644485240211fb96dd3e1b3e71efcfa76
parent05520573d14d587d92e2d857547608effafae6c3
cmd/init: don't spit out a traceback on init error

When an error occurs during repository creation, 'bup init' currently
lets GitError exceptions leak out, printing a backtrace to unsuspecting
users in the process.

Intercept GitError exceptions that come out of git.init_repo() and print
out the message that it contains in a more friendly manner.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
cmd/init-cmd.py