/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: John Arbash Meinel
  • Date: 2007-03-14 20:47:17 UTC
  • mto: (2353.4.2 locking)
  • mto: This revision was merged to the branch mainline in revision 2360.
  • Revision ID: john@arbash-meinel.com-20070314204717-htynwogv97fqr22a
Cleanup errors, and change ReadOnlyLockError to pass around more details.

Show diffs side-by-side

added added

removed removed

Lines of Context:
698
698
 
699
699
 
700
700
class ReadOnlyLockError(LockError):
701
 
    
702
 
    _fmt = "Cannot acquire write lock on %(fname)s. File is readonly."
703
 
 
704
 
    def __init__(self, fname):
 
701
 
 
702
    _fmt = "Cannot acquire write lock on %(fname)s. %(msg)s"
 
703
 
 
704
    def __init__(self, fname, msg):
705
705
        LockError.__init__(self, '')
706
706
        self.fname = fname
 
707
        self.msg = msg
707
708
 
708
709
 
709
710
class OutSideTransaction(BzrError):