RFC: remove traceback from "newer branch format than your bzr"

Martin Pool mbp at canonical.com
Thu Aug 13 03:08:14 BST 2009


2009/8/13 Andrew Bennetts <andrew.bennetts at canonical.com>:
> Martin Pool wrote:
> [...]
>> I don't think it's worth worrying about the case of "still running but
>> can't write to disk".  It doesn't happen often.  We often are still
>> running but can't reach a remote server, but it'd be hard to get to a
>> point where local IO can't work.
>
> The most likely case I can think of is “disk full”.  In that situation I don't
> think there's much we can do; filling the terminal instead of a file is
> presumably not much use.  It may be worth testing that the attempt to write a
> crash dump fails gracefully in that case? (rather than giving a traceback!)

Another plausible one is that through using sudo you've ended up with
some files in your home directory owned by root.

If I do John's review suggestion of catching IOError we should handle
this implicitly.

I'll try to merge in those changes and then take it to a merge
proposal for further discussion.  I'm mindful that changes that hide
exceptions from developers might impair their experience but I think
we can get the right balance.

-- 
Martin <http://launchpad.net/~mbp/>



More information about the bazaar mailing list