~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/msgeditor.py

  • Committer: Martin Pool
  • Date: 2010-01-12 02:58:09 UTC
  • mto: This revision was merged to the branch mainline in revision 4950.
  • Revision ID: mbp@sourcefrog.net-20100112025809-6w5kcs1klegidzax
Give a warning on error 123 trying to run subprocess

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
            # platforms aren't likely to have that high of an error. And even
71
71
            # if they do, it is still reasonable to fall back to the next
72
72
            # editor.
73
 
            if e.errno in (errno.ENOENT, errno.EACCES, errno.ENOEXEC, 193):
 
73
            # 123 is "The Filename, Directory Name, or Volume Label Syntax Is
 
74
            # Incorrect" (see
 
75
            # <https://bugs.edge.launchpad.net/bzr/+bug/504842>)
 
76
            if e.errno in (errno.ENOENT, errno.EACCES, errno.ENOEXEC, 193, 123):
74
77
                if candidate_source is not None:
75
78
                    # We tried this editor because some user configuration (an
76
79
                    # environment variable or config file) said to try it.  Let