~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

[merge] LockCleanup changes.

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):