X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fsave-cmd.py;h=b8e4f7aa597d999d877a31a40b36f4c40e205a71;hb=e9dd83a1fd86630e98d44a37a3deb48912c787c5;hp=fce9aadc95659c36014c3032df309e865bb257aa;hpb=497505901824dd7382d1d80e152f6b6d810a2844;p=bup.git diff --git a/cmd/save-cmd.py b/cmd/save-cmd.py index fce9aad..b8e4f7a 100755 --- a/cmd/save-cmd.py +++ b/cmd/save-cmd.py @@ -74,7 +74,11 @@ if opt.name and opt.name.startswith('.'): o.fatal("'%s' is not a valid branch name" % opt.name) refname = opt.name and 'refs/heads/%s' % opt.name or None if opt.remote or is_reverse: - cli = client.Client(opt.remote) + try: + cli = client.Client(opt.remote) + except client.ClientError, e: + log('error: %s' % e) + sys.exit(1) oldref = refname and cli.read_ref(refname) or None w = cli.new_packwriter(compression_level=opt.compress) else: