Yucky exceptions

Martin Pool mbp at sourcefrog.net
Tue Nov 29 07:59:57 GMT 2005


On 29 Nov 2005, Michael Ellerman <michael at ellerman.id.au> wrote:
> Hi y'all,
> 
> When did we start printing the class name in exceptions? I don't like it, it 
> makes it look like a bug, rather than an error, eg:
> 
> bzr: ERROR: bzrlib.errors.BzrCommandError: No shelf found in branch 
> '/home/michael/src/bzr/test'
>   at shelf.py line 58
>   in unshelve
> 
> I'd prefer:
> 
> bzr: ERROR: No shelf found in branch '/home/michael/src/bzr/test'

Yes you're right - this was fixed for some errors classes, but now
should cover all subclasses of BzrError.  Others are assumed to be bugs
nad reported with a classname and a bit more detail.  I think that's a
reasonable tradeoff.  You always get a traceback in the log.

-- 
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051129/dec03c5e/attachment.pgp 


More information about the bazaar mailing list