~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/globbing.py

  • Committer: Parth Malwankar
  • Date: 2010-07-01 05:51:43 UTC
  • mto: This revision was merged to the branch mainline in revision 5339.
  • Revision ID: parth.malwankar@gmail.com-20100701055143-qjk8is8qan231t7s
Globster now mutters regex failure message before changing message

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
from bzrlib.trace import (
26
26
    errors,
 
27
    mutter,
27
28
    warning,
28
29
    )
29
30
 
219
220
            # We can't show the default e.message to the user as thats for
220
221
            # the combined pattern we sent to regex. Instead we indicate to
221
222
            # the user that an ignore file needs fixing.
 
223
            mutter('Invalid pattern found in regex: %s.', e.message)
222
224
            e.message = "File ~/.bazaar/ignore or .bzrignore contains errors."
223
225
            raise e
224
226
        return None